|
| PointCloudShape (const MeshResource *mesh, uint32_t id=0, uint16_t category=0, uint8_t pointSize=1) |
| Construct a point cloud shape object. More...
|
|
| ~PointCloudShape () |
| Destructor.
|
|
PointCloudShape & | setPointSize (uint8_t size) |
| Set the desired point render size (pixels). More...
|
|
uint8_t | pointSize () const |
| Get the desired point render size (pixels). More...
|
|
template<typename I > |
PointCloudShape & | setIndices (I begin, uint32_t indexCount) |
| Sets the (optional) indices for this PointCloudShape Shape . More...
|
|
const MeshResource * | mesh () const |
| Get the mesh resource containing the point data to render. More...
|
|
virtual bool | writeCreate (PacketWriter &stream) const override |
| Writes the standard create message and appends the point cloud ID (uint32_t ). More...
|
|
virtual int | writeData (PacketWriter &stream, unsigned &progressMarker) const override |
| Write index data set in setIndices() if any. More...
|
|
virtual bool | isComplex () const override |
| Defines this class as a complex shape. More...
|
|
int | enumerateResources (const Resource **resources, int capacity, int fetchOffset) const override |
| Enumerates the mesh resource given on construction. More...
|
|
Shape * | clone () const override |
| Deep copy clone. More...
|
|
| Shape (uint16_t routingId, uint32_t id=0) |
|
| Shape (uint16_t routingId, uint32_t id, uint16_t category) |
| Construct a box object. More...
|
|
uint16_t | routingId () const |
|
uint32_t | id () const |
|
Shape & | setId (uint32_t id) |
|
uint16_t | category () const |
|
Shape & | setCategory (uint16_t category) |
|
Shape & | setWireframe (bool wire) |
| Sets the wireframe flag value for this shape. More...
|
|
bool | isWireframe () const |
| Returns true if the wireframe flag is set. More...
|
|
Shape & | setTransparent (bool transparent) |
| Sets the transparent flag value for this shape. More...
|
|
bool | isTransparent () const |
| Returns true if the transparent flag is set. More...
|
|
Shape & | setTwoSided (bool twoSided) |
| Sets the two sided shader flag value for this shape. More...
|
|
bool | isTwoSided () const |
| Returns true if the two sided shader flag is set. More...
|
|
Shape & | setFlags (uint16_t flags) |
| Set the full set of ObjectFlag values. More...
|
|
uint16_t | flags () const |
| Retrieve the full set of ObjectFlag values. More...
|
|
Shape & | setPosition (const V3Arg &pos) |
|
Vector3f | position () const |
|
Shape & | setPosX (float p) |
|
Shape & | setPosY (float p) |
|
Shape & | setPosZ (float p) |
|
Shape & | setRotation (const QuaternionArg &rot) |
|
Quaternionf | rotation () const |
|
Shape & | setScale (const V3Arg &scale) |
|
Vector3f | scale () const |
|
Shape & | setColour (const Colour &colour) |
|
Colour | colour () const |
|
virtual void | updateFrom (const Shape &other) |
| Update the attributes of this shape to match other . More...
|
|
bool | writeUpdate (PacketWriter &stream) const |
|
bool | writeDestroy (PacketWriter &stream) const |
|
A Shape
which renders a set of points as in a point cloud.
The points are contained in a MeshResource
(e.g., PointCloud
) and may be shared between PointCloudShape
shapes. The MeshResource
should have a MeshResource.drawType()
of DtPoints
or the behaviour may be undefined.
The PointCloudShape
shape supports limiting the view into the MeshResource
by having its own set of indices (see setIndices()
).
template<typename I >
PointCloudShape & tes::PointCloudShape::setIndices |
( |
I |
begin, |
|
|
uint32_t |
indexCount |
|
) |
| |
Sets the (optional) indices for this PointCloudShape
Shape
.
This shape will only visualise the indexed points from its PointSource
. This allows multiple PointCloudShape
shapes to reference the same cloud, but reveal sub-sets of the cloud.
This method is designed to copy any iterable sequence between begin
and end
, however the number of elements must be provided in indexCount
.
- Template Parameters
-
I | An iterable item. Must support dereferencing to an unsigned integer and an increment operator. |
- Parameters
-
iter | The index iterator. |
indexCount | The number of elements to copy from iter . |
- Returns
- This.