#include <vtkKWEPaintbrushSketch.h>


Definition at line 41 of file vtkKWEPaintbrushSketch.h.
| vtkKWEPaintbrushSketch::vtkKWEPaintbrushSketch | ( | ) | [protected] |
| vtkKWEPaintbrushSketch::~vtkKWEPaintbrushSketch | ( | ) | [protected] |
| static vtkKWEPaintbrushSketch* vtkKWEPaintbrushSketch::New | ( | ) | [static] |
Standard VTK methods
Reimplemented from vtkObject.
| vtkKWEPaintbrushSketch::vtkTypeRevisionMacro | ( | vtkKWEPaintbrushSketch | , | |
| vtkObject | ||||
| ) |
Standard VTK methods
| void vtkKWEPaintbrushSketch::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Standard VTK methods
Reimplemented from vtkObject.
| virtual void vtkKWEPaintbrushSketch::SetPaintbrushOperation | ( | vtkKWEPaintbrushOperation * | ) | [virtual] |
Set/Get the operation. Must be set.
| virtual vtkKWEPaintbrushOperation* vtkKWEPaintbrushSketch::GetPaintbrushOperation | ( | ) | [virtual] |
Set/Get the operation. Must be set.
| virtual void vtkKWEPaintbrushSketch::SetImageData | ( | vtkImageData * | ) | [virtual] |
Set/Get the image data over which the strokes are overlayed. This is the background image.
| virtual vtkImageData* vtkKWEPaintbrushSketch::GetImageData | ( | ) | [virtual] |
Set/Get the image data over which the strokes are overlayed. This is the background image.
| virtual vtkKWEPaintbrushData* vtkKWEPaintbrushSketch::GetPaintbrushData | ( | ) | [virtual] |
Set/Get the paintbrush data that we've already sketched out. If one is not set, the canvas will be created automatically for you.
| virtual void vtkKWEPaintbrushSketch::SetPaintbrushData | ( | vtkKWEPaintbrushData * | ) | [virtual] |
Set/Get the paintbrush data that we've already sketched out. If one is not set, the canvas will be created automatically for you.
| virtual void vtkKWEPaintbrushSketch::Initialize | ( | ) | [virtual] |
Initializes the datastructures, creates a canvas (vtkKWEPaintbrushData) if one hasn't been set already. If called, it must be called only after the operation and the ImageData have been set.
| virtual void vtkKWEPaintbrushSketch::Initialize | ( | vtkKWEPaintbrushLabelData * | labelMap | ) | [virtual] |
Alternate function signature for initializing the sketch. Must be called only after the operation and ImageData and the label value have been set. The former two will be automatically set if you have added this to the drawing already.
| virtual void vtkKWEPaintbrushSketch::SetRepresentation | ( | int | ) | [virtual] |
See documentation of vtkKWEPaintbrushEnums::BrushType.
| virtual int vtkKWEPaintbrushSketch::GetRepresentation | ( | ) | [virtual] |
See documentation of vtkKWEPaintbrushEnums::BrushType.
| virtual void vtkKWEPaintbrushSketch::SetRepresentationToGrayscale | ( | ) | [inline, virtual] |
See documentation of vtkKWEPaintbrushEnums::BrushType.
Definition at line 92 of file vtkKWEPaintbrushSketch.h.
| virtual void vtkKWEPaintbrushSketch::SetRepresentationToBinary | ( | ) | [inline, virtual] |
See documentation of vtkKWEPaintbrushEnums::BrushType.
Definition at line 94 of file vtkKWEPaintbrushSketch.h.
| virtual void vtkKWEPaintbrushSketch::SetRepresentationToLabel | ( | ) | [inline, virtual] |
See documentation of vtkKWEPaintbrushEnums::BrushType.
Definition at line 96 of file vtkKWEPaintbrushSketch.h.
| virtual void vtkKWEPaintbrushSketch::SetLabel | ( | vtkKWEPaintbrushEnums::LabelType | ) | [virtual] |
This must be set if you are setting the representation to 'Label'. This indicates the value in the label map that this sketch represents.
| virtual vtkKWEPaintbrushEnums::LabelType vtkKWEPaintbrushSketch::GetLabel | ( | ) | [virtual] |
This must be set if you are setting the representation to 'Label'. This indicates the value in the label map that this sketch represents.
| virtual void vtkKWEPaintbrushSketch::SetHistoryLength | ( | int | ) | [virtual] |
The sketch maintains a history of strokes made, to facilitate undo/redo of edits. A larger history length implies more memory. A length of 0 implies that no undo-redo functionality is possible. Defaults to 4. If you choose to set this, do so once before using the sketch. DO NOT change it midway.
| virtual int vtkKWEPaintbrushSketch::GetHistoryLength | ( | ) | [virtual] |
The sketch maintains a history of strokes made, to facilitate undo/redo of edits. A larger history length implies more memory. A length of 0 implies that no undo-redo functionality is possible. Defaults to 4. If you choose to set this, do so once before using the sketch. DO NOT change it midway.
| virtual vtkKWEPaintbrushProperty* vtkKWEPaintbrushSketch::GetPaintbrushProperty | ( | ) | [virtual] |
Get the property of the sketch. You may use this to change colors etc.
| virtual int vtkKWEPaintbrushSketch::AddNewStroke | ( | int | polarity = vtkKWEPaintbrushEnums::Draw, |
|
| vtkKWEPaintbrushData * | initialization = NULL, |
|||
| int * | extents = NULL, |
|||
| bool | forceMutable = false | |||
| ) | [virtual] |
Add a new stroke. The first argument specifies if it is a draw or an erase stroke. The second argument is optional. You can initialize this new stroke data, let's say you wanted to compose an external segmentation to the existing ones. Your initialization will automatically be added to the sketch's history. The third argument is optional. By default, each stroke has extents that match that of the canvas image. Although there are efficient datastructures to more compactly represent this, it can induce some memory drag. If you are dead sure that your stroke is going to have certain bounding extents, you can set this. The widgets internally use this under certain conditions to speed things up.
| void vtkKWEPaintbrushSketch::Add | ( | vtkKWEPaintbrushSketch * | sketch | ) |
Add another sketch's data to this sketch
| virtual int vtkKWEPaintbrushSketch::DeleteLastStroke | ( | ) | [virtual] |
Delete the last added stroke
| virtual int vtkKWEPaintbrushSketch::PopStroke | ( | ) | [virtual] |
Used to maintain the undo/redo functionality.. Pop sequence pops a sequence out of the list during undo. Push pushes the last undone sequence back into the list. (essentially does a redo).
| virtual int vtkKWEPaintbrushSketch::PushStroke | ( | ) | [virtual] |
Used to maintain the undo/redo functionality.. Pop sequence pops a sequence out of the list during undo. Push pushes the last undone sequence back into the list. (essentially does a redo).
| virtual void vtkKWEPaintbrushSketch::EraseStrokes | ( | int | start, | |
| int | end | |||
| ) | [virtual] |
Strokes between start and end, both inclusive, are erased.
| void vtkKWEPaintbrushSketch::CopySketchFromExtentToExtent | ( | int | sourceExtent[6], | |
| int | targetExtent[6] | |||
| ) |
This method can be used to copy a sketch from a source extent to a target extent. Only voxels that belong to this sketch will be copied over. Use cases for this method are slice by slice propagation of a sketch.
| virtual unsigned long vtkKWEPaintbrushSketch::GetMTime | ( | ) | [virtual] |
| virtual void vtkKWEPaintbrushSketch::ComposeStrokes | ( | ) | [virtual] |
INTERNAL - Do not use. This method merges strokes from start to end.
| virtual void vtkKWEPaintbrushSketch::AddShapeToCurrentStroke | ( | double | p[3], | |
| vtkKWEPaintbrushData * | auxData = NULL | |||
| ) | [protected, virtual] |
INTERNAL - Do not use. Invoked by a user draw/erase interaction. Adds a shape to the current stroke at position "p"
| virtual void vtkKWEPaintbrushSketch::AllocatePaintbrushData | ( | ) | [protected, virtual] |
By default, the sketch's extents will be same as that of the canvas, ImageData that's set as input. You should never need to explicitly call this method, but if called, must be called after Initialize().
| void vtkKWEPaintbrushSketch::CollapseHistory | ( | ) | [protected] |
Collapses the history of the sketch. This does not affect the history length. This simply collapses all existing history.
friend class vtkKWEPaintbrushDrawing [friend] |
Definition at line 44 of file vtkKWEPaintbrushSketch.h.
friend class vtkKWEPaintbrushProperty [friend] |
Definition at line 45 of file vtkKWEPaintbrushSketch.h.
Definition at line 176 of file vtkKWEPaintbrushSketch.h.
Definition at line 177 of file vtkKWEPaintbrushSketch.h.
Definition at line 178 of file vtkKWEPaintbrushSketch.h.
vtkImageData* vtkKWEPaintbrushSketch::ImageData [protected] |
Definition at line 179 of file vtkKWEPaintbrushSketch.h.
int vtkKWEPaintbrushSketch::CurrentStroke [protected] |
Definition at line 180 of file vtkKWEPaintbrushSketch.h.
int vtkKWEPaintbrushSketch::Representation [protected] |
Definition at line 181 of file vtkKWEPaintbrushSketch.h.
int vtkKWEPaintbrushSketch::HistoryLength [protected] |
Definition at line 182 of file vtkKWEPaintbrushSketch.h.
Definition at line 183 of file vtkKWEPaintbrushSketch.h.
vtkKWEPaintbrushEnums::LabelType vtkKWEPaintbrushSketch::Label [protected] |
Definition at line 186 of file vtkKWEPaintbrushSketch.h.
1.7.1