VTK  9.3.20240328
Public Member Functions | List of all members
vtkColor3f Class Reference

#include <vtkColor.h>

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

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 236 of file vtkColor.h.

Constructor & Destructor Documentation

◆ vtkColor3f() [1/4]

vtkColor3f::vtkColor3f ( )
default

◆ vtkColor3f() [2/4]

vtkColor3f::vtkColor3f ( float  scalar)
inlineexplicit

Definition at line 240 of file vtkColor.h.

◆ vtkColor3f() [3/4]

vtkColor3f::vtkColor3f ( const float *  init)
inlineexplicit

Definition at line 244 of file vtkColor.h.

◆ vtkColor3f() [4/4]

vtkColor3f::vtkColor3f ( float  r,
float  g,
float  b 
)
inline

Definition at line 248 of file vtkColor.h.


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