Zivid  1.0.1+3607.8a7510c4
Zivid API
Public Member Functions | Public Attributes | List of all members
Zivid::Point Class Reference

A 3D point with contrast and RGBA values. More...

#include <Point.h>

Public Member Functions

 Point ()
 Construct a 3D point at (0,0,0) with contrast 0 and color values (r,g,b,a) = (0,0,0,255)
 
void setNaN ()
 Invalidate the point (set it to Not-a-Number)
 
bool isNaN () const
 Check whether the point is valid (Not-a-Number)
 
void setRgba (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 Set the r,g,b and alpha color value for the point.
 
void setRgb (unsigned char r, unsigned char g, unsigned char b)
 Set the r,g,b color value for the point.
 
void setIntensity (unsigned char val)
 Set the intensity for the point (sets r,g and b to identical values)
 
void setContrast (float value)
 Set the contrast for the point.
 
unsigned char alpha ()
 Get the alpha value for the point.
 
unsigned char red () const
 Get the red color value for the point.
 
unsigned char green () const
 Get the green color value for the point.
 
unsigned char blue () const
 Get the blue color value for the point.
 
unsigned char intensity ()
 Get the intensity of the point.
 

Public Attributes

float x
 X coordinate.
 
float y
 Y coordinate.
 
float z
 Z coordinate.
 
float contrast
 Contrast.
 
uint32_t rgba
 Color (red,green,blue,alpha)
 

Detailed Description

A 3D point with contrast and RGBA values.


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