Manages a default set of properties corresponding to the collection of sketches.
More...
#include <vtkKWEPaintbrushPropertyManager.h>
List of all members.
Detailed Description
Manages a default set of properties corresponding to the collection of sketches.
This class is not meant to be used by the user and hence is not exposed to the user. It is used internally by the paintbrush infrastructure to assign a default set of properties as new sketches are added, so that you get unique colors for each segmentation etc. It is also used by the blender for optmizations in blending a label map containing many sketches into a final overlay.
Definition at line 46 of file vtkKWEPaintbrushPropertyManager.h.
Member Typedef Documentation
Constructor & Destructor Documentation
| vtkKWEPaintbrushPropertyManager::vtkKWEPaintbrushPropertyManager |
( |
|
) |
[protected] |
| vtkKWEPaintbrushPropertyManager::~vtkKWEPaintbrushPropertyManager |
( |
|
) |
[protected] |
Member Function Documentation
| void vtkKWEPaintbrushPropertyManager::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent | |
|
) |
| | [virtual] |
A drawing is always associated with a paintbrush sketch. A vtkKWEPaintbrushSketch upon creation will automatically be assigned a default property internally. You can, using this method, query the sketch to which this property is assigned.
| virtual void vtkKWEPaintbrushPropertyManager::SetHighlightType |
( |
int |
|
) |
[virtual] |
| virtual int vtkKWEPaintbrushPropertyManager::GetHighlightType |
( |
|
) |
[virtual] |
| void vtkKWEPaintbrushPropertyManager::Update |
( |
|
) |
|
Assign colors to sketches in the drawing, using some strategy to ensure, as far as possible some sort of uniqueness
| void vtkKWEPaintbrushPropertyManager::Initialize |
( |
|
) |
|
INTERNAL - Do not Use. Used to figure out used colors and assign "pleasing" defaultcolors to new sketches. The representations typically Initialize the manager, AddUsedColors for all the sketches that have colors already and then request a color for the new sketch.
| void vtkKWEPaintbrushPropertyManager::AddUsedColor |
( |
vtkProperty * |
p |
) |
|
INTERNAL - Do not Use. Used to figure out used colors and assign "pleasing" defaultcolors to new sketches. The representations typically Initialize the manager, AddUsedColors for all the sketches that have colors already and then request a color for the new sketch.
INTERNAL - Do not Use. Used to figure out used colors and assign "pleasing" defaultcolors to new sketches. The representations typically Initialize the manager, AddUsedColors for all the sketches that have colors already and then request a color for the new sketch.
INTERNAL - Do not Use. Used to figure out used colors and assign "pleasing" defaultcolors to new sketches. The representations typically Initialize the manager, AddUsedColors for all the sketches that have colors already and then request a color for the new sketch.
| void vtkKWEPaintbrushPropertyManager::UpdateLabelToColorMap |
( |
|
) |
[protected] |
Called from Update(). This is done only if the Drawing type is LabelMap
| void vtkKWEPaintbrushPropertyManager::AddUsedColor |
( |
const ColorType & |
|
) |
[protected] |
| ColorType vtkKWEPaintbrushPropertyManager::RequestColor |
( |
|
) |
[protected] |
Grab focus makes only a certain sketch editable. This is called in respose to interaction automatically by vtkKWEPaintbrushWidget.
| void vtkKWEPaintbrushPropertyManager::ReleaseFocus |
( |
|
) |
[protected] |
Grab focus makes only a certain sketch editable. This is called in respose to interaction automatically by vtkKWEPaintbrushWidget.
Friends And Related Function Documentation
The documentation for this class was generated from the following file: