VTK  9.1.0
Public Member Functions | List of all members
vtkColor3d Class Reference

#include <vtkColor.h>

Inheritance diagram for vtkColor3d:
[legend]
Collaboration diagram for vtkColor3d:
[legend]

Public Member Functions

 vtkColor3d ()=default
 
 vtkColor3d (double scalar)
 
 vtkColor3d (const double *init)
 
 vtkColor3d (double r, double g, double b)
 
- Public Member Functions inherited from vtkColor3< double >
 vtkColor3 ()=default
 
 vtkColor3 (const double &scalar)
 
 vtkColor3 (const double *init)
 
 vtkColor3 (const double &red, const double &green, const double &blue)
 
void SetRed (const double &red)
 Set the red component of the color, i.e.
 
const double & GetRed () const
 Get the red component of the color, i.e.
 
void SetGreen (const double &green)
 Set the green component of the color, i.e.
 
const double & GetGreen () const
 Get the green component of the color, i.e.
 
void SetBlue (const double &blue)
 Set the blue component of the color, i.e.
 
const double & GetBlue () const
 Get the blue component of the color, i.e.
 
void Set (const double &red, const double &green, const double &blue)
 Set the red, green and blue components of the color.
 
- Public Member Functions inherited from vtkTuple< T, Size >
 vtkTuple ()=default
 The default constructor does not initialize values.
 
 vtkTuple (const T &scalar)
 Initialize all of the tuple's elements with the supplied scalar.
 
 vtkTuple (const T *init)
 Initialize the tuple's elements with the elements of the supplied array.
 
 vtkTuple (const std::array< T, Size > &values)
 Initialize the tuple's elements using a std::array for matching type and size.
 
int GetSize () const
 Get the size of the tuple.
 
T * GetData ()
 Get a pointer to the underlying data of the tuple.
 
const T * GetData () const
 
T & operator[] (int i)
 Get a reference to the underlying data element of the tuple.
 
const T & operator[] (int i) const
 
operator() (int i) const
 Get the value of the tuple at the index specified.
 
bool Compare (const vtkTuple< T, Size > &other, const T &tol) const
 Equality operator with a tolerance to allow fuzzy comparisons.
 
template<typename TR >
vtkTuple< TR, Size > Cast () const
 Cast the tuple to the specified type, returning the result.
 

Additional Inherited Members

- Protected Attributes inherited from vtkTuple< T, Size >
Data [Size]
 The only thing stored in memory!
 

Detailed Description

Definition at line 355 of file vtkColor.h.

Constructor & Destructor Documentation

◆ vtkColor3d() [1/4]

vtkColor3d::vtkColor3d ( )
default

◆ vtkColor3d() [2/4]

vtkColor3d::vtkColor3d ( double  scalar)
inlineexplicit

Definition at line 359 of file vtkColor.h.

◆ vtkColor3d() [3/4]

vtkColor3d::vtkColor3d ( const double *  init)
inlineexplicit

Definition at line 363 of file vtkColor.h.

◆ vtkColor3d() [4/4]

vtkColor3d::vtkColor3d ( double  r,
double  g,
double  b 
)
inline

Definition at line 367 of file vtkColor.h.


The documentation for this class was generated from the following file: