VTK  9.3.20240419
Public Member Functions | List of all members
vtkColor4ub Class Reference

#include <vtkColor.h>

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

Public Member Functions

 vtkColor4ub ()=default
 
 vtkColor4ub (unsigned char scalar)
 
 vtkColor4ub (const unsigned char *init)
 
 vtkColor4ub (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
 
 vtkColor4ub (const vtkColor3ub &c)
 
 vtkColor4ub (int hexSigned)
 Construct a color from a hexadecimal representation such as 0x0000FFAA (opaque blue). More...
 
- Public Member Functions inherited from vtkColor4< unsigned char >
 vtkColor4 ()=default
 
 vtkColor4 (const unsigned char &scalar)
 
 vtkColor4 (const unsigned char *init)
 
 vtkColor4 (const unsigned char &red, const unsigned char &green, const unsigned char &blue, const unsigned char &alpha)
 
void SetRed (const unsigned char &red)
 Set the red component of the color, i.e. More...
 
const unsigned char & GetRed () const
 Get the red component of the color, i.e. More...
 
void SetGreen (const unsigned char &green)
 Set the green component of the color, i.e. More...
 
const unsigned char & GetGreen () const
 Get the green component of the color, i.e. More...
 
void SetBlue (const unsigned char &blue)
 Set the blue component of the color, i.e. More...
 
const unsigned char & GetBlue () const
 Get the blue component of the color, i.e. More...
 
void SetAlpha (const unsigned char &alpha)
 Set the alpha component of the color, i.e. More...
 
const unsigned char & GetAlpha () const
 Get the alpha component of the color, i.e. More...
 
void Set (const unsigned char &red, const unsigned char &green, const unsigned char &blue)
 Set the red, green and blue components of the color. More...
 
void Set (const unsigned char &red, const unsigned char &green, const unsigned char &blue, const unsigned char &alpha)
 Set the red, green, blue and alpha 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 272 of file vtkColor.h.

Constructor & Destructor Documentation

◆ vtkColor4ub() [1/6]

vtkColor4ub::vtkColor4ub ( )
default

◆ vtkColor4ub() [2/6]

vtkColor4ub::vtkColor4ub ( unsigned char  scalar)
inlineexplicit

Definition at line 276 of file vtkColor.h.

◆ vtkColor4ub() [3/6]

vtkColor4ub::vtkColor4ub ( const unsigned char *  init)
inlineexplicit

Definition at line 280 of file vtkColor.h.

◆ vtkColor4ub() [4/6]

vtkColor4ub::vtkColor4ub ( int  hexSigned)
inlineexplicit

Construct a color from a hexadecimal representation such as 0x0000FFAA (opaque blue).

Definition at line 290 of file vtkColor.h.

◆ vtkColor4ub() [5/6]

vtkColor4ub::vtkColor4ub ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a = 255 
)
inline

Definition at line 303 of file vtkColor.h.

◆ vtkColor4ub() [6/6]

vtkColor4ub::vtkColor4ub ( const vtkColor3ub c)
inline

Definition at line 307 of file vtkColor.h.


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