#include <vtkColorPalette.h>
Inheritance diagram for vtkColorPalette:
vtkColorPalette provides an interface to an associative array of color materials.
Definition at line 35 of file vtkColorPalette.h.
Public Member Functions | ||||
vtkTypeRevisionMacro (vtkColorPalette, vtkPalette) | ||||
vtkIdType | GetNumberOfChildColors (void) const | |||
Get the number of subpalettes in this palette. | ||||
Child Material Methods | ||||
virtual bool | InsertMaterial (const char *name, vtkMaterialmaterial) | |||
Add an associated name - material pair to the map. | ||||
virtual bool | FindMaterial (const char *name, vtkMaterial &material) | |||
Find material data associated with the given name . | ||||
virtual bool | RemoveMaterial (const char *name) | |||
Remove the material pair associated with the given name . | ||||
Child Color Methods | ||||
bool | InsertColor (const char *name, vtkColorWordrgba) | |||
Adds an associated name-color pair to the map. | ||||
bool | FindColor (const char *name, vtkColorWord &rgba) | |||
Given a name, find an associated color in the map. | ||||
bool | RemoveColor (const char *name) | |||
Remove an associated name - color pair from the map. | ||||
Name Finding Methods | ||||
virtual bool | FindName (vtkPalette *palette, const char *&name) | |||
Find the first name in the map associated with the given palette . | ||||
virtual bool | FindName (vtkMaterialmaterial, const char *&name) | |||
Find the first name in the map associated with the given material . | ||||
virtual bool | FindName (vtkColorWordrgba, const char *&name) | |||
Find the first name in the map associated with the given color. | ||||
virtual bool | FindNextName (const char *&name) | |||
Find the next name in the map associated with a palette, material, or color specified in a previous call to FindName . | ||||
is \c NULL or | ||||
Initiates traversal through the map.empty, traversal starts at the first pair in the map.
| ||||
virtual void | InitTraversal (const char *name=NULL) | |||
virtual bool | TraverseForward (const char *&name, vtkPalette &palette) | |||
Get the current name - palette association in the map and iterate forward to the next pair. | ||||
virtual bool | TraverseForward (const char *&name, vtkMaterial &material) | |||
Get the current name - material association in the map and iterate forward to the next pair. | ||||
virtual bool | TraverseForward (const char *&name, vtkColorWord &rgba) | |||
Get the current name - color association in the map and iterate forward to the next pair. | ||||
void | InitColorScope (void) | |||
bool | IncrementColorInScope (const char *&name, vtkColorWord &color) | |||
bool | DecrementColorInScope (const char *&name, vtkColorWord &color) | |||
bool | CurrentColorInScope (const char *&name, vtkColorWord &color) const | |||
Methods for Inserting Default Associations | ||||
void | InsertDefaultPalettes (bool=false) | |||
Insert default palette pairs into the map. | ||||
void | InsertDefaultMaterials (bool=false) | |||
Insert default material pairs into the map. | ||||
void | InsertDefaultColors (boolrevert=false) | |||
Insert default color pairs into the map. | ||||
Formatted Output Methods | ||||
void | PrintColor (ostream &target, vtkIndent indent, const char *const &name, vtkColorWord const &color) | |||
Print the color data associated with name as a formatted string on the target output stream. | ||||
Static Public Member Functions | ||||
vtkColorPalette * | New (void) | |||
Protected Member Functions | ||||
vtkColorPalette (void) | ||||
~vtkColorPalette () |
|
|
|
|
|
|
|
|
|
Given a name, find an associated color in the map.
Reimplemented from vtkPalette. |
|
Find
Reimplemented from vtkPalette. |
|
Find the first
Definition at line 111 of file vtkColorPalette.h. |
|
Find the first
Definition at line 104 of file vtkColorPalette.h. |
|
Find the first
Definition at line 97 of file vtkColorPalette.h. |
|
Find the next
Definition at line 120 of file vtkColorPalette.h. |
|
Get the number of subpalettes in this palette.
|
|
|
|
|
|
Reimplemented from vtkPalette. Definition at line 131 of file vtkColorPalette.h. |
|
Adds an associated name-color pair to the map.
Reimplemented from vtkPalette. |
|
Insert default color pairs into the map.
|
|
Insert default material pairs into the map.
|
|
Insert default palette pairs into the map.
|
|
Add an associated
Reimplemented from vtkPalette. |
|
Reimplemented from vtkPalette. |
|
Print the color data associated with
Reimplemented from vtkPalette. |
|
Remove an associated name - color pair from the map.
|
|
Remove the material pair associated with the given
|
|
Get the current
Definition at line 168 of file vtkColorPalette.h. |
|
Get the current
Definition at line 155 of file vtkColorPalette.h. |
|
Get the current
Definition at line 142 of file vtkColorPalette.h. |
|
|