66 PointCloudObject(
bool withNormals=
false,
bool withColors=
false,
bool withLabels=
false,
bool withDepth=
false);
69 PointCloudObject(
int numPoints,
bool withNormals=
false,
bool withColors=
true,
bool withLabels=
false,
bool withDepth=
false);
77 PointCloudObject(
int width,
int height,
bool organized=
true,
bool withNormals=
false,
78 bool withColors=
true,
bool withLabels=
false,
bool withDepth=
false);
84 virtual bool isOrganized()
const;
90 virtual int getDim()
const;
119 virtual void customRender();
139 addVertex(point,
GeomColor(0,100,255,255));
140 if(m_hasNormals) m_normals.push_back(
Vec(0,0,0,1));
141 if(m_hasDepth) m_depth.push_back(0);
147 addVertex(point,
color);
148 if(m_hasNormals) m_normals.push_back(
Vec(0,0,0,1));
149 if(m_hasDepth) m_depth.push_back(0);
155 addVertex(point,
color);
156 if(m_hasNormals) m_normals.push_back(normal);
157 if(m_hasDepth) m_depth.push_back(
depth);
void push_back(const Vec &point, const GeomColor &color)
adds xyz point with given color
Definition: PointCloudObject.h:146
undocument this line if you encounter any issues!
Definition: Any.h:37
Base class for point cloud data types.
Definition: PointCloudObjectBase.h:98
#define ICLGeom_API
Definition: CompatMacros.h:179
std::vector< int > m_labels
label mask (activated in constructor)
Definition: PointCloudObject.h:60
bool m_hasColors
flag whether the point cloud has colors
Definition: PointCloudObject.h:57
std::vector< float > m_depth
optional feature for the depth mask (Depth-feature)
Definition: PointCloudObject.h:61
Base implementation of the SceneObjectBase interface for compability with common icl::SceneObjects.
Definition: PointCloudObject.h:52
FeatureType
List of well known features.
Definition: PointCloudObjectBase.h:150
virtual PointCloudObject * copy() const
deep copy function
Definition: PointCloudObject.h:130
Size class of the ICL.
Definition: Size.h:61
ICLGeom_API void addNormal(const Vec &n)
adds a new normal to this object
void push_back(const Vec &point)
just a simple wrapper for top-top level classe's addVertex method
Definition: PointCloudObject.h:138
bool m_hasLabels
flag indicating whether labels are supported
Definition: PointCloudObject.h:58
void push_back(const Vec &point, const Vec &normal, const GeomColor &color, float depth=0)
adds xyz point with given normal and color and optional depth value
Definition: PointCloudObject.h:154
Vec4D32f Vec
Short typedef for 4D float vectors.
Definition: GeomDefs.h:87
depth
determines the pixel type of an image (8Bit-int or 32Bit-float)
Definition: Types.h:60
bool m_hasNormals
flag whether normals are given
Definition: PointCloudObject.h:56
core::Color4D32f GeomColor
color for geometry primitives
Definition: GeomDefs.h:45
ICLQt_API void color(float r, float g=-1, float b=-1, float alpha=255)
sets the current color to given r,g,b,alpha value
ICLGeom_API void addVertex(const Vec &p, const GeomColor &color=GeomColor(255, 0, 0, 255))
adds a new vertex to this object
bool m_organized
internal 2D organized flag
Definition: PointCloudObject.h:54
utils::Size m_dim2D
2D dimension
Definition: PointCloudObject.h:55
The DataSegment class defines a strided data segment (or 1D or 2D ordred array of vectors)
Definition: DataSegment.h:147
bool m_hasDepth
flag indicating whether a depth-feature is supported
Definition: PointCloudObject.h:59