CFx SDK Documentation 2024 SP0
|
#include <GiPointCloud.h>
Classes | |
struct | Components |
struct | ComponentsRaw |
Public Types | |
enum | Component { kVertexComponent = 0 , kColorComponent , kNormalComponent , kNumComponents } |
enum | ExtraComponent { kTransparencyComponent = kNumComponents , kNumExtraComponents } |
enum | ComponentMask { kNoComponents = 0 , kColors = (1 << 0) , kTransparencies = (1 << 1) , kNormals = (1 << 2) } |
enum | DataSize { kDataSizeByte = 0 , kDataSizeWord , kDataSizeFloat , kDataSizeDouble } |
enum | Flags { kLastComponentFlag = (1 << (kNumComponents << 1)) , kAsyncCall = (kLastComponentFlag << 0) , kPartialData = (kLastComponentFlag << 1) , kLastFlag = kPartialData } |
typedef OdArray< Components > | ComponentsArray |
typedef OdArray< ComponentsRaw, OdMemoryAllocator< ComponentsRaw > > | ComponentsRawArray |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGiPointCloud) | |
virtual OdUInt32 | totalPointsCount () const =0 |
virtual OdUInt32 | componentsMask () const |
virtual OdUInt32 | supportFlags (Component component=kNumComponents) const |
virtual const OdGeMatrix3d & | globalTransform () const |
virtual OdInt32 | defaultPointSize () const |
virtual bool | getExtents (OdGeBoundBlock3d &) const |
virtual bool | calculateExtents (OdGeExtents3d &extents, const OdGiPointCloudFilter *pFilter=NULL) const |
virtual bool | isDataCompatible (const OdGiViewport &pVp1, const OdGiViewport &pVp2) const =0 |
virtual bool | updatePointsData (OdGiPointCloudReceiver *pReceiver, OdUInt32 components=kNoComponents, OdUInt32 flags=0, const OdGiViewport *pVp=NULL, const OdGiViewport *pVpFrom=NULL, OdUInt32 pointSize=0) const =0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Static Public Member Functions | |
static OdUInt32 | addDataSizeFlags (OdUInt32 *pFlags, Component component, DataSize ds) |
static DataSize | getDataSizeFlags (OdUInt32 flags, Component component) |
static OdUInt32 | getDefaultDataSizeFlags () |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Basic point cloud interface object.
<group OdGi_Classes>
Definition at line 49 of file GiPointCloud.h.
Definition at line 117 of file GiPointCloud.h.
typedef OdArray<ComponentsRaw, OdMemoryAllocator<ComponentsRaw> > OdGiPointCloud::ComponentsRawArray |
Definition at line 138 of file GiPointCloud.h.
Enumerator | |
---|---|
kVertexComponent | |
kColorComponent | |
kNormalComponent | |
kNumComponents |
Definition at line 52 of file GiPointCloud.h.
Enumerator | |
---|---|
kNoComponents | |
kColors | |
kTransparencies | |
kNormals |
Definition at line 65 of file GiPointCloud.h.
Enumerator | |
---|---|
kDataSizeByte | |
kDataSizeWord | |
kDataSizeFloat | |
kDataSizeDouble |
Definition at line 71 of file GiPointCloud.h.
Enumerator | |
---|---|
kTransparencyComponent | |
kNumExtraComponents |
Definition at line 60 of file GiPointCloud.h.
Enumerator | |
---|---|
kLastComponentFlag | |
kAsyncCall | |
kPartialData | |
kLastFlag |
Definition at line 78 of file GiPointCloud.h.
|
inlinestatic |
Helper function to set data type size into flags.
Definition at line 90 of file GiPointCloud.h.
|
virtual |
Return extents of point cloud entity.
|
inlinevirtual |
Returns set of data components available for point cloud entity (see ComponentsMask enum).
Definition at line 149 of file GiPointCloud.h.
|
inlinevirtual |
Returns default point size.
Definition at line 167 of file GiPointCloud.h.
|
inlinestatic |
Helper function extracts data type size from flags.
Definition at line 98 of file GiPointCloud.h.
|
inlinestatic |
Returns default point cloud setting (actual for Gi implementation).
Definition at line 105 of file GiPointCloud.h.
|
inlinevirtual |
Return extents of point cloud entity.
Definition at line 172 of file GiPointCloud.h.
|
inlinevirtual |
Returns global transformation, which should be applied by underlying renderer to render point could data.
Definition at line 163 of file GiPointCloud.h.
|
pure virtual |
Check that point data compatible for specified viewports.
OdGiPointCloud::ODRX_DECLARE_MEMBERS | ( | OdGiPointCloud | ) |
|
inlinevirtual |
Returns format support flags. If set to any component except kNumComponents returns bit flags represent support data type sizes: 1 - byte, 2 - short, 4 - float, 8 - double. For color 2 means OdCmEntityColor+OdCmTransparency combination. If set to kNumComponents return flags (see Flags enum). By default: Vertex as doubles, Colors as OdCmEntityColor, Normals as doubles and No Flags.
Definition at line 157 of file GiPointCloud.h.
|
pure virtual |
Returns total number of points, contained by point cloud entity.
|
pure virtual |
Compute point cloud data.