Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends

vtkKWEPaintbrushSelectionRepresentation Class Reference

#include <vtkKWEPaintbrushSelectionRepresentation.h>

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

List of all members.

Public Types

enum  {
  PaintbrushRequestSketchSelect, PaintbrushSketchSelect, PaintbrushSketchUnselect, PaintbrushRequestSketchMerge,
  PaintbrushSketchMerge, PaintbrushDisabled, None
}

Public Member Functions

virtual int ComputeInteractionState (int X, int Y, int modifier=0)
void SetPointPlacer (vtkPointPlacer *)
virtual vtkPointPlacerGetPointPlacer ()
virtual void DeepCopy (vtkWidgetRepresentation *)
virtual void AddSketchToSelection (vtkKWEPaintbrushSketch *)
virtual void RemoveSketchFromSelection (vtkKWEPaintbrushSketch *)
virtual int DeleteSelectedSketches ()

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

virtual void SetPaintbrushDrawing (vtkKWEPaintbrushDrawing *)
virtual vtkKWEPaintbrushDrawingGetPaintbrushDrawing ()

virtual int DisplayPositionIsInside (vtkKWEPaintbrushSketch *s, double displayPos[2])

virtual int WorldPositionIsInside (vtkKWEPaintbrushSketch *s, double worldPos[3])

virtual vtkKWEPaintbrushSketchGetSelectedSketch ()

virtual void SelectAllSketches ()
virtual void UnSelectAllSketches ()

const vtkstd::vector
< vtkKWEPaintbrushSketch * > & 
GetSelectedSketches ()

virtual int MergeSelectedSketches (vtkKWEPaintbrushSketch *mergedSketch=NULL, int removeSketches=1)

Protected Member Functions

 vtkKWEPaintbrushSelectionRepresentation ()
 ~vtkKWEPaintbrushSelectionRepresentation ()
virtual int DragAndDropMerge ()

virtual void SetInteractionState (int)

Protected Attributes

vtkKWEPaintbrushDrawingPaintbrushDrawing
vtkPointPlacerPointPlacer
int LastDisplayPosition [2]
vtkKWEPaintbrushSketchSelectedSketch

Friends

class vtkKWEPaintbrushSelectionWidget



typedef vtkstd::vector
< vtkKWEPaintbrushSketch * > 
SelectedSketchesType
SelectedSketchesType SelectedSketches
int PrevInteractionState
double DragBeginPoint [3]
double DragEndPoint [3]
vtkKWEPaintbrushSketchDragAndDropDestination

Detailed Description

Definition at line 38 of file vtkKWEPaintbrushSelectionRepresentation.h.


Member Typedef Documentation

List of selected sketches.

Definition at line 168 of file vtkKWEPaintbrushSelectionRepresentation.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
PaintbrushRequestSketchSelect 
PaintbrushSketchSelect 
PaintbrushSketchUnselect 
PaintbrushRequestSketchMerge 
PaintbrushSketchMerge 
PaintbrushDisabled 
None 

Definition at line 53 of file vtkKWEPaintbrushSelectionRepresentation.h.


Constructor & Destructor Documentation

vtkKWEPaintbrushSelectionRepresentation::vtkKWEPaintbrushSelectionRepresentation (  )  [protected]
vtkKWEPaintbrushSelectionRepresentation::~vtkKWEPaintbrushSelectionRepresentation (  )  [protected]

Member Function Documentation

vtkKWEPaintbrushSelectionRepresentation::vtkTypeRevisionMacro ( vtkKWEPaintbrushSelectionRepresentation  ,
vtkWidgetRepresentation   
)

Standard VTK methods.

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

Standard VTK methods.

Reimplemented from vtkWidgetRepresentation.

Reimplemented in vtkKWEPaintbrushSelectionRepresentation2D.

virtual int vtkKWEPaintbrushSelectionRepresentation::ComputeInteractionState ( int  X,
int  Y,
int  modifier = 0 
) [virtual]

These are methods that satisfy vtkWidgetRepresentation's API.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkKWEPaintbrushSelectionRepresentation::SetPaintbrushDrawing ( vtkKWEPaintbrushDrawing  )  [virtual]

Set the Paintbrush drawing

virtual vtkKWEPaintbrushDrawing* vtkKWEPaintbrushSelectionRepresentation::GetPaintbrushDrawing (  )  [virtual]

Set the Paintbrush drawing

void vtkKWEPaintbrushSelectionRepresentation::SetPointPlacer ( vtkPointPlacer  ) 
virtual vtkPointPlacer* vtkKWEPaintbrushSelectionRepresentation::GetPointPlacer (  )  [virtual]
virtual void vtkKWEPaintbrushSelectionRepresentation::DeepCopy ( vtkWidgetRepresentation  )  [virtual]
virtual int vtkKWEPaintbrushSelectionRepresentation::DisplayPositionIsInside ( vtkKWEPaintbrushSketch s,
double  displayPos[2] 
) [virtual]

Check if display point is inside the sketch "s".

virtual int vtkKWEPaintbrushSelectionRepresentation::WorldPositionIsInside ( vtkKWEPaintbrushSketch s,
double  worldPos[3] 
) [virtual]

Check if world point is inside the sketch "s".

virtual vtkKWEPaintbrushSketch* vtkKWEPaintbrushSelectionRepresentation::GetSelectedSketch (  )  [virtual]

Check if display position is inside the drawing and return the first drawing that falls within the display position. Returns NULL if the position doesn't lie on any sketch in the drawing. virtual vtkKWEPaintbrushSketch* DisplayPositionIsInside( double displayPos[2] );

Get the selected sketch.

virtual void vtkKWEPaintbrushSelectionRepresentation::AddSketchToSelection ( vtkKWEPaintbrushSketch  )  [virtual]

Add sketch to the list of selected sketches.

virtual void vtkKWEPaintbrushSelectionRepresentation::RemoveSketchFromSelection ( vtkKWEPaintbrushSketch  )  [virtual]

Remove sketch from the list of selected sketches.

virtual int vtkKWEPaintbrushSelectionRepresentation::DeleteSelectedSketches (  )  [virtual]

Deletes selected sketches. Returns the number of sketches removed.

virtual void vtkKWEPaintbrushSelectionRepresentation::SelectAllSketches (  )  [virtual]

Select/UnSelect all the sketches in the drawing

virtual void vtkKWEPaintbrushSelectionRepresentation::UnSelectAllSketches (  )  [virtual]

Select/UnSelect all the sketches in the drawing

const vtkstd::vector< vtkKWEPaintbrushSketch * >& vtkKWEPaintbrushSelectionRepresentation::GetSelectedSketches (  )  [inline]

Get the selected sketches.

Definition at line 128 of file vtkKWEPaintbrushSelectionRepresentation.h.

virtual int vtkKWEPaintbrushSelectionRepresentation::MergeSelectedSketches ( vtkKWEPaintbrushSketch mergedSketch = NULL,
int  removeSketches = 1 
) [virtual]

Merge the selected sketches. You may specify a sketch, from the drawing, to merge into. If NULL, the first selected sketch will contain the merge. By default sketches merged are removed. The removeSketches ivar can be used to control this.

virtual void vtkKWEPaintbrushSelectionRepresentation::SetInteractionState ( int   )  [protected, virtual]

Set the interaction state.

virtual int vtkKWEPaintbrushSelectionRepresentation::DragAndDropMerge (  )  [protected, virtual]

Drag and drop merge support. Returns 1 if successful.

Reimplemented in vtkKWEPaintbrushSelectionRepresentation2D.


Friends And Related Function Documentation

friend class vtkKWEPaintbrushSelectionWidget [friend]

Definition at line 42 of file vtkKWEPaintbrushSelectionRepresentation.h.


Member Data Documentation

Definition at line 154 of file vtkKWEPaintbrushSelectionRepresentation.h.

The point placer determines the world coordinate based on screen coordinate and allows you to set constraints too.

Definition at line 158 of file vtkKWEPaintbrushSelectionRepresentation.h.

Bookkeeping of the last display position.

Definition at line 161 of file vtkKWEPaintbrushSelectionRepresentation.h.

The sketch just selected.

Definition at line 164 of file vtkKWEPaintbrushSelectionRepresentation.h.

List of selected sketches.

Definition at line 169 of file vtkKWEPaintbrushSelectionRepresentation.h.

List of selected sketches.

Definition at line 170 of file vtkKWEPaintbrushSelectionRepresentation.h.

List of selected sketches.

Definition at line 171 of file vtkKWEPaintbrushSelectionRepresentation.h.

List of selected sketches.

Definition at line 171 of file vtkKWEPaintbrushSelectionRepresentation.h.

List of selected sketches.

Definition at line 172 of file vtkKWEPaintbrushSelectionRepresentation.h.


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