Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends

vtkKWEPaintbrushAnnotationRepresentation Class Reference

An abstract base class for 2D/3D paintbrush widget representations. More...

#include <vtkKWEPaintbrushAnnotationRepresentation.h>

Inheritance diagram for vtkKWEPaintbrushAnnotationRepresentation:
Inheritance graph
[legend]
Collaboration diagram for vtkKWEPaintbrushAnnotationRepresentation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void BuildRepresentation ()
virtual int RenderTranslucentGeometry (vtkViewport *viewport)
virtual void SetVisibility (int)

 vtkTypeRevisionMacro (vtkKWEPaintbrushAnnotationRepresentation, vtkWidgetRepresentation)
void PrintSelf (ostream &os, vtkIndent indent)

virtual void ReleaseGraphicsResources (vtkWindow *w)
virtual int RenderOverlay (vtkViewport *viewport)
virtual int RenderOpaqueGeometry (vtkViewport *viewport)

virtual void SetAnnotationPosition (double, double)
void SetAnnotationPosition (double[2])
virtual double * GetAnnotationPosition ()
virtual void GetAnnotationPosition (double &, double &)
virtual void GetAnnotationPosition (double[2])

virtual void SetAnnotation (const char *)
virtual char * GetAnnotation ()

virtual vtkTextPropertyGetTextProperty ()

Static Public Member Functions

static
vtkKWEPaintbrushAnnotationRepresentation
New ()

Protected Member Functions

 vtkKWEPaintbrushAnnotationRepresentation ()
 ~vtkKWEPaintbrushAnnotationRepresentation ()

Protected Attributes

vtkTimeStampBuildTime
vtkActor2DTextActor
vtkTextPropertyTextProperty
vtkTextMapperTextMapper
char * Annotation
vtkKWEPaintbrushRepresentationPaintbrushRepresentation
vtksys_stl::string LastDisplayedAnnotation
int LastDisplayPosition [2]
double AnnotationPosition [2]

Friends

class vtkKWEPaintbrushRepresentation

Detailed Description

An abstract base class for 2D/3D paintbrush widget representations.

See vtkKWEPaintbrushAnnotationRepresentation2D for more details. The ShapePlacer must be set prior to use.

Before using the class, you must set the ImageActor on which the brush is being drawn.

Definition at line 45 of file vtkKWEPaintbrushAnnotationRepresentation.h.


Constructor & Destructor Documentation

vtkKWEPaintbrushAnnotationRepresentation::vtkKWEPaintbrushAnnotationRepresentation (  )  [protected]
vtkKWEPaintbrushAnnotationRepresentation::~vtkKWEPaintbrushAnnotationRepresentation (  )  [protected]

Member Function Documentation

static vtkKWEPaintbrushAnnotationRepresentation* vtkKWEPaintbrushAnnotationRepresentation::New (  )  [static]

Instantiate this class.

Reimplemented from vtkObject.

vtkKWEPaintbrushAnnotationRepresentation::vtkTypeRevisionMacro ( vtkKWEPaintbrushAnnotationRepresentation  ,
vtkWidgetRepresentation   
)

Standard VTK methods.

void vtkKWEPaintbrushAnnotationRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard VTK methods.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkKWEPaintbrushAnnotationRepresentation::BuildRepresentation (  )  [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Implements vtkWidgetRepresentation.

virtual void vtkKWEPaintbrushAnnotationRepresentation::ReleaseGraphicsResources ( vtkWindow w  )  [virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkKWEPaintbrushAnnotationRepresentation::RenderOverlay ( vtkViewport viewport  )  [virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkProp.

virtual int vtkKWEPaintbrushAnnotationRepresentation::RenderOpaqueGeometry ( vtkViewport viewport  )  [virtual]

Methods required by vtkProp superclass.

Reimplemented from vtkProp.

virtual int vtkKWEPaintbrushAnnotationRepresentation::RenderTranslucentGeometry ( vtkViewport viewport  )  [virtual]
virtual void vtkKWEPaintbrushAnnotationRepresentation::SetVisibility ( int   )  [virtual]

Override superclass method and propagate to all sub-props.

Reimplemented from vtkProp.

virtual void vtkKWEPaintbrushAnnotationRepresentation::SetAnnotationPosition ( double  ,
double   
) [virtual]

Annotations will by default be placed whereever the brush currently is. If you would like to have annotations appearing at a certain spot, you can override this. The position is in Normalized display coords

void vtkKWEPaintbrushAnnotationRepresentation::SetAnnotationPosition ( double  [2]  ) 

Annotations will by default be placed whereever the brush currently is. If you would like to have annotations appearing at a certain spot, you can override this. The position is in Normalized display coords

virtual double* vtkKWEPaintbrushAnnotationRepresentation::GetAnnotationPosition (  )  [virtual]

Annotations will by default be placed whereever the brush currently is. If you would like to have annotations appearing at a certain spot, you can override this. The position is in Normalized display coords

virtual void vtkKWEPaintbrushAnnotationRepresentation::GetAnnotationPosition ( double &  ,
double &   
) [virtual]

Annotations will by default be placed whereever the brush currently is. If you would like to have annotations appearing at a certain spot, you can override this. The position is in Normalized display coords

virtual void vtkKWEPaintbrushAnnotationRepresentation::GetAnnotationPosition ( double  [2]  )  [virtual]

Annotations will by default be placed whereever the brush currently is. If you would like to have annotations appearing at a certain spot, you can override this. The position is in Normalized display coords

virtual void vtkKWEPaintbrushAnnotationRepresentation::SetAnnotation ( const char *   )  [virtual]

Set/Get the string to render. This is automatically set from vtkKWEPaintbrushAnnotationWidget.

virtual char* vtkKWEPaintbrushAnnotationRepresentation::GetAnnotation (  )  [virtual]

Set/Get the string to render. This is automatically set from vtkKWEPaintbrushAnnotationWidget.

virtual vtkTextProperty* vtkKWEPaintbrushAnnotationRepresentation::GetTextProperty (  )  [virtual]

Get the text property used to render the annotation.


Friends And Related Function Documentation

friend class vtkKWEPaintbrushRepresentation [friend]

Definition at line 48 of file vtkKWEPaintbrushAnnotationRepresentation.h.


Member Data Documentation

Reimplemented from vtkWidgetRepresentation.

Definition at line 106 of file vtkKWEPaintbrushAnnotationRepresentation.h.

Definition at line 107 of file vtkKWEPaintbrushAnnotationRepresentation.h.

Definition at line 108 of file vtkKWEPaintbrushAnnotationRepresentation.h.

Definition at line 109 of file vtkKWEPaintbrushAnnotationRepresentation.h.

Definition at line 110 of file vtkKWEPaintbrushAnnotationRepresentation.h.

Definition at line 111 of file vtkKWEPaintbrushAnnotationRepresentation.h.

Definition at line 112 of file vtkKWEPaintbrushAnnotationRepresentation.h.

Definition at line 113 of file vtkKWEPaintbrushAnnotationRepresentation.h.

Definition at line 114 of file vtkKWEPaintbrushAnnotationRepresentation.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines