#include <vtkPalette.h>
Inheritance diagram for vtkPalette:
vtkPalette provides an interface to an associative array of color materials.
Definition at line 39 of file vtkPalette.h.
Public Member Functions | ||||
vtkTypeRevisionMacro (vtkPalette, vtkPaletteElement) | ||||
void | PrintSelf (ostream &, vtkIndent) | |||
int | GetType (void) const | |||
Get an enumeration of the element type. | ||||
const vtkXMLChType * | GetTagName (void) const | |||
Get the XML tag name for marshalling / unmarshalling. | ||||
const vtkXMLChType * | GetFullName (void) | |||
Get the full name for this palette. | ||||
virtual vtkPalette * | GetParent (void) const | |||
Get the parent palette of this palette. | ||||
int | IsRoot (void) const | |||
Is this palette element a root node (i.e. | ||||
int | IsLeaf (void) const | |||
Is this palette element a leaf node (i.e. | ||||
int | IsEmpty (void) const | |||
Returns true if the palette is empty. | ||||
vtkIdType | GetSize (void) const | |||
Returns the total number of elements in the palette including children. | ||||
vtkIdType | GetCapacity (void) const | |||
Returns the total number of elements that can be held by this object. | ||||
virtual vtkPaletteElementHashMap * | GetElements () | |||
Get a pointer to the internal elements map instance. | ||||
vtkPaletteElement * | Find (const char *name) const | |||
Find an element associated with a name as a child of this object. | ||||
vtkPaletteElement * | FindInScope (const char *name) const | |||
Find an element associated with a scoped name in the map. | ||||
const char * | StringToColor (const char *name, double &red, double &green, double &blue, double &alpha) | |||
Gets the RGBA component bytes of the color and returns a pointer to the text following these values if the parsing was finished. | ||||
vtkGetXMLStringMacro (VersionAttr, vtkXMLChType) | ||||
Get/Set the id attribute of this palette element. | ||||
vtkSetXMLStringMacro (VersionAttr, vtkXMLChType) | ||||
Get/Set the id attribute of this palette element. | ||||
Local Object Search Methods | ||||
int | Find (const char *name, vtkPalette *&element) | |||
Find an element associated with a name in the map. | ||||
int | Find (const char *name, vtkPaletteColor *&element) | |||
Find an element associated with a name in the map. | ||||
int | Find (const char *name, vtkPaletteMaterial *&element) | |||
Find an element associated with a name in the map. | ||||
int | Find (const char *name, vtkAbstractPaletteMaterial *&element) | |||
Find an element associated with a name in the map. | ||||
Scoped Object Search Methods | ||||
int | FindInScope (const char *name, vtkPalette *&element) | |||
Find an element associated with a scoped name in the map. | ||||
int | FindInScope (const char *name, vtkPaletteColor *&element) | |||
Find an element associated with a scoped name in the map. | ||||
int | FindInScope (const char *name, vtkPaletteMaterial *&element) | |||
Find an element associated with a scoped name in the map. | ||||
int | FindInScope (const char *name, vtkAbstractPaletteMaterial *&element) | |||
Find an element associated with a scoped name in the map. | ||||
Local Object Insertion Methods | ||||
int | Insert (vtkPaletteElement *element) | |||
Add an element to the map. | ||||
Local Object Creation+Insertion Methods | ||||
int | Insert (const char *name, vtkPalette *element) | |||
Create and add an object associated with a name to the map. | ||||
int | Insert (const char *name, vtkPaletteColor *element) | |||
Create and add an object associated with a name to the map. | ||||
int | Insert (const char *name, vtkPaletteMaterial *element) | |||
Create and add an object associated with a name to the map. | ||||
Scoped Object Insertion Methods | ||||
int | InsertInScope (const char *name, vtkPaletteElement *element) | |||
Add an element associated with a name to the map. | ||||
Scoped Object Creation+Insertion Methods | ||||
int | InsertInScope (const char *name, vtkPalette *element) | |||
Create and add an object associated with a name to the map. | ||||
int | InsertInScope (const char *name, vtkPaletteColor *element) | |||
Create and add an object associated with a name to the map. | ||||
int | InsertInScope (const char *name, vtkPaletteMaterial *element) | |||
Create and add an object associated with a name to the map. | ||||
General Type Map Methods | ||||
int | Erase (const char *name) | |||
Erase an element associated with a name from this object's map. | ||||
int | EraseInScope (const char *name) | |||
Erase an element associated with a scoped name from a map. | ||||
Color and Material Data Creation Insertion Methods | ||||
int | InsertColor (const char *name, const double c0, const double c1, const double c2, const double alpha, vtkPaletteColor *object) | |||
Add a name associated with RGBA component floats to the map. | ||||
int | InsertColor (const char *name, const double c0, const double c1, const double c2, const double alpha) | |||
Add a name associated with RGBA component floats to the map. | ||||
int | InsertColor (const char *name, const double c0, const double c1, const double c2) | |||
Add a name associated with RGB component floats to the map. | ||||
int | InsertColor (const char *name, const double color[4]) | |||
Add a name associated with an RGBA float array to the map. | ||||
int | InsertColor (const char *name, const unsigned char c0, const unsigned char c1, const unsigned char c2, const unsigned char alpha) | |||
Add a name associated with RGBA component bytes to the map. | ||||
int | InsertColor (const char *name, const unsigned char c0, const unsigned char c1, const unsigned char c2) | |||
Add a name associated with RGB component bytes to the map. | ||||
int | InsertColor (const char *name, const unsigned char color[4]) | |||
Add a name associated with an RGBA byte array to the map. | ||||
int | InsertColor (const char *name, const vtkColorWord rgba) | |||
Add a name associated with a packed RGBA word to the map. | ||||
int | InsertMaterial (const char *name, const vtkMaterial material, vtkPaletteMaterial *object) | |||
Add an associated name - material pair to the map. | ||||
int | InsertMaterial (const char *name, const vtkMaterial material) | |||
Add an associated name - material pair to the map. | ||||
Color and Material Data Search Methods | ||||
int | FindColor (const char *name, double &c0, double &c1, double &c2, double &alpha) | |||
Find color data associated with the given name . | ||||
int | FindColor (const char *name, double &c0, double &c1, double &c2) | |||
Find color data associated with the given name . | ||||
int | FindColor (const char *name, double color[4]) | |||
Find color data associated with the given name . | ||||
int | FindColor (const char *name, vtkColorWord &rgba) | |||
Given a name, find an associated packed RGBA word in the map. | ||||
int | FindColor (const char *name, unsigned char &c0, unsigned char &c1, unsigned char &c2, unsigned char &alpha) | |||
Given a name, find associated RGBA component bytes in the map. | ||||
int | FindColor (const char *name, unsigned char &c0, unsigned char &c1, unsigned char &c2) | |||
Given a name, find associated RGB component bytes in the map. | ||||
int | FindColor (const char *name, unsigned char color[4]) | |||
Given a name, find an associated RGBA byte array in the map. | ||||
int | FindMaterial (const char *name, vtkMaterial &material) | |||
Find material data associated with the given name . | ||||
Traversal Methods | ||||
int | InitTraversal (void) | |||
Initialize traversal through the elements. | ||||
is \c NULL or | ||||
Initialize traversal through the elements.empty, traversal starts at the first pair in the map.
| ||||
int | InitTraversal (const char *name) | |||
int | GetNextElement (const char *&name, vtkPaletteElement *&element) | |||
Get the current name - element association in the map and iterate forward to the next pair. | ||||
int | GetCurrentElement (const char *&name, vtkPaletteElement *&element) const | |||
Get the current name - element association in the map. | ||||
int | GetFirstElement (const char *&name, vtkPaletteElement *&element) | |||
Get the first name - element association in the map. | ||||
int | GetLastElement (const char *&name, vtkPaletteElement *&element) | |||
Get the last name - element association in the map. | ||||
int | GetNextPalette (const char *&name, vtkPalette *&palette) | |||
Get the current name - palette association in the map and iterate forward to the next palette pair. | ||||
int | GetCurrentPalette (const char *&name, vtkPalette *&palette) const | |||
Get the current name - palette association in the map. | ||||
int | GetNextColor (const char *&name, vtkPaletteColor *&color) | |||
Get the current name - color association in the map and iterate forward to the next color pair. | ||||
int | GetCurrentColor (const char *&name, vtkPaletteColor *&color) const | |||
Get the current name - color association in the map. | ||||
int | GetNextMaterial (const char *&name, vtkPaletteMaterial *&material) | |||
Get the current name - material association in the map and iterate forward to the next material pair. | ||||
int | GetCurrentMaterial (const char *&name, vtkPaletteMaterial *&material) const | |||
Get the current name - material association in the map. | ||||
int | GetNextAbstractMaterial (const char *&name, vtkAbstractPaletteMaterial *&material) | |||
Get the current name - material association in the map and iterate forward to the next material pair. | ||||
int | GetCurrentAbstractMaterial (const char *&name, vtkAbstractPaletteMaterial *&material) const | |||
Get the current name - material association in the map. | ||||
Methods for Inserting Default Associations | ||||
virtual void | InsertDefaultPalettes (int revert=VTK_FALSE) | |||
Insert default palette pairs into the map. | ||||
virtual void | InsertDefaultMaterials (int revert=VTK_FALSE) | |||
Insert default material pairs into the map. | ||||
virtual void | InsertDefaultColors (int revert=VTK_FALSE) | |||
Insert default color pairs into the map. | ||||
void | InsertDefaults (int revert=VTK_FALSE) | |||
Insert all defaults into the maps. | ||||
Static Public Member Functions | ||||
vtkPalette * | New (void) | |||
Static Public Attributes | ||||
const char *const | PalettePathsEnvVar | |||
Search path env. | ||||
const char *const | PaletteFilesEnvVar | |||
Search filename env. | ||||
const vtkXMLChType *const | paletteString | |||
const vtkXMLChType *const | createdString | |||
const vtkXMLChType *const | modifiedString | |||
const vtkXMLChType *const | versionString | |||
Protected Member Functions | ||||
vtkPalette (void) | ||||
~vtkPalette () | ||||
virtual void | SetParent (vtkPalette *a) | |||
Output Marshalling Specializations | ||||
void | MarshalAttributes (ostream &) | |||
void | MarshalContent (ostream &, vtkIndent) | |||
Print the all material pairs as a formatted string on the target output stream. | ||||
void | UnmarshalAttribute (const vtkXMLChType *const &attr, const vtkXMLChType *const &value) | |||
virtual void | PrintMaterial (ostream &target, vtkIndent indent, const char *const &name, vtkMaterial const &material) | |||
Print the material data associated with name as a formatted string on the target output stream. | ||||
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 Protected Member Functions | ||||
void | BuildSearchLists (void) | |||
void | InitSearchPathsTraversal (const char *const &name=NULL) | |||
int | TraverseSearchPathsForward (const char *&name) | |||
void | InitSearchFilesTraversal (const char *const &name=NULL) | |||
int | TraverseSearchFilesForward (const char *&name) | |||
Protected Attributes | ||||
vtkXMLChType * | FullName | |||
vtkXMLChType * | CreatedAttr | |||
vtkXMLChType * | ModifiedAttr | |||
vtkXMLChType * | VersionAttr | |||
vtkPaletteElementHashMap * | Elements | |||
vtkPaletteElementHashMapIterator * | Iterator |
|
|
|
|
|
|
|
Erase an element associated with a
Reimplemented from vtkPaletteElement. |
|
Erase an element associated with a scoped
|
|
Find an
|
|
Find an
|
|
Find an
|
|
Find an
|
|
Find an element associated with a
Reimplemented from vtkPaletteElement. |
|
Given a name, find an associated RGBA byte array in the map.
Definition at line 769 of file vtkPalette.h. References FindColor(). |
|
Given a name, find associated RGB component bytes in the map.
Definition at line 759 of file vtkPalette.h. References FindColor(). |
|
Given a name, find associated RGBA component bytes in the map.
Definition at line 741 of file vtkPalette.h. References FindColor(), VTK_FALSE, VTK_TRUE, and vtkColorWord. |
|
Given a name, find an associated packed RGBA word in the map.
Reimplemented in vtkColorPalette. Definition at line 726 of file vtkPalette.h. References FindColor(), VTK_FALSE, VTK_TRUE, and vtkColorWord. |
|
Find
Definition at line 719 of file vtkPalette.h. References FindColor(). |
|
Find color data associated with the given
Definition at line 709 of file vtkPalette.h. References FindColor(). |
|
Find color data associated with the given
Referenced by FindColor(). |
|
Find an
|
|
Find an
|
|
Find an
|
|
Find an
|
|
Find an element associated with a scoped name in the map.
|
|
Find
Reimplemented in vtkColorPalette. |
|
Returns the total number of elements that can be held by this object.
Reimplemented from vtkPaletteElement. |
|
Get the current
|
|
Get the current
|
|
Get the current
|
|
Get the current
|
|
Get the current
|
|
Get a pointer to the internal elements map instance.
|
|
Get the first
|
|
Get the full name for this palette.
|
|
Get the last
|
|
Get the current
|
|
Get the current
|
|
Get the current
|
|
Get the current
|
|
Get the current
|
|
Get the parent palette of this palette.
Reimplemented from vtkPaletteElement. Definition at line 693 of file vtkPalette.h. |
|
Returns the total number of elements in the palette including children.
Reimplemented from vtkPaletteElement. |
|
Get the XML tag name for marshalling / unmarshalling.
Implements vtkPaletteElement. |
|
Get an enumeration of the element type.
Reimplemented from vtkPaletteElement. |
|
|
|
|
|
Reimplemented in vtkColorPalette. |
|
Initialize traversal through the elements.
|
|
Create and add an
|
|
Create and add an
|
|
Create and add an
|
|
Add an
Reimplemented from vtkPaletteElement. |
|
Add a
Reimplemented in vtkColorPalette. Definition at line 824 of file vtkPalette.h. References InsertColor(), and VTK_EXTENSIONS_GET_COLORBYTE. |
|
Add a
Definition at line 817 of file vtkPalette.h. References InsertColor(). |
|
Add a
Definition at line 808 of file vtkPalette.h. References InsertColor(), and VTK_EXTENSIONS_RGB_MAX. |
|
Add a
Definition at line 793 of file vtkPalette.h. References InsertColor(), and VTK_EXTENSIONS_UINT8_MAX. |
|
Add a
Definition at line 786 of file vtkPalette.h. References InsertColor(). |
|
Add a
Definition at line 777 of file vtkPalette.h. References InsertColor(). |
|
Add a
|
|
Add a
Referenced by InsertColor(). |
|
Insert default color pairs into the map.
Referenced by InsertDefaults(). |
|
Insert default material pairs into the map.
Referenced by InsertDefaults(). |
|
Insert default palette pairs into the map.
Referenced by InsertDefaults(). |
|
Insert all defaults into the maps.
Definition at line 700 of file vtkPalette.h. References InsertDefaultColors(), InsertDefaultMaterials(), InsertDefaultPalettes(), and InsertDefaults(). Referenced by InsertDefaults(). |
|
Create and add an
|
|
Create and add an
|
|
Create and add an
|
|
Add an
|
|
Add an associated
Reimplemented in vtkColorPalette. |
|
Add an associated
|
|
Returns
Reimplemented from vtkPaletteElement. |
|
Is this palette element a leaf node (i.e. cannot have children). Reimplemented from vtkPaletteElement. Definition at line 72 of file vtkPalette.h. References VTK_FALSE. |
|
Is this palette element a root node (i.e. cannot have parent). Reimplemented from vtkPaletteElement. Definition at line 68 of file vtkPalette.h. |
|
Reimplemented from vtkPaletteElement. |
|
Print the all material pairs as a formatted string on the
Reimplemented from vtkPaletteElement. |
|
Reimplemented from vtkExtensionsObject. Reimplemented in vtkColorPalette. |
|
Print the color data associated with
Reimplemented in vtkColorPalette. |
|
Print the material data associated with
Definition at line 637 of file vtkPalette.h. |
|
Reimplemented from vtkPaletteElement. |
|
Definition at line 669 of file vtkPalette.h. |
|
Gets the RGBA component bytes of the color and returns a pointer to the text following these values if the parsing was finished.
|
|
|
|
|
|
Reimplemented from vtkPaletteElement. |
|
Get/Set the id attribute of this palette element.
|
|
Get/Set the id attribute of this palette element.
|
|
|
|
Definition at line 661 of file vtkPalette.h. |
|
Definition at line 608 of file vtkPalette.h. |
|
Definition at line 665 of file vtkPalette.h. |
|
Definition at line 660 of file vtkPalette.h. |
|
Definition at line 666 of file vtkPalette.h. |
|
Definition at line 662 of file vtkPalette.h. |
|
Definition at line 609 of file vtkPalette.h. |
|
Search filename env. var. ("VTK_PALETTE_FILES"). Definition at line 604 of file vtkPalette.h. |
|
Search path env. var. ("VTK_PALETTE_PATHS"). Definition at line 601 of file vtkPalette.h. |
|
Definition at line 606 of file vtkPalette.h. |
|
Definition at line 663 of file vtkPalette.h. |
|
Definition at line 610 of file vtkPalette.h. |