|
| PointCloud (uint32_t id) |
| Create a PointCloud resource with the given ID. More...
|
|
| ~PointCloud () |
| Destructor.
|
|
uint32_t | id () const override |
| The resource ID. More...
|
|
PointCloud * | clone () const override |
| Clone the cloud resource. More...
|
|
Matrix4f | transform () const override |
| Always the identity matrix. More...
|
|
uint32_t | tint () const override |
| Always returns white. More...
|
|
uint8_t | drawType (int stream=0) const override |
| Always returns DtPoints . More...
|
|
void | reserve (unsigned size) |
| Reserve sufficient vertex, normal and colour data for size points. More...
|
|
void | resize (unsigned count) |
| Resize the point cloud to contain count vertices, normals and colours. More...
|
|
void | squeeze () |
| Reduce allocated memory to exactly match the number of points currently in the cloud.
|
|
unsigned | capacity () const |
| Return the number of points allocated memory currently supports. More...
|
|
unsigned | vertexCount (int stream=0) const override |
| Returns the number of vertices in the mesh. More...
|
|
const float * | vertices (unsigned &stride, int stream=0) const override |
| Returns a pointer to the vertex stream. More...
|
|
const Vector3f * | vertices () const |
| Access vertices as a Vector3f array. More...
|
|
unsigned | indexCount (int stream=0) const override |
| Not supported. More...
|
|
const uint8_t * | indices (unsigned &stride, unsigned &width, int stream=0) const override |
| Not supported. More...
|
|
const float * | normals (unsigned &stride, int stream=0) const override |
| Returns a pointer to the normal stream. More...
|
|
const Vector3f * | normals () const |
| Access normals as a Vector3f array. More...
|
|
const uint32_t * | colours (unsigned &stride, int stream=0) const override |
| Returns a pointer to the colour stream. More...
|
|
const Colour * | colours () const |
| Access colours as a Colour array. More...
|
|
const float * | uvs (unsigned &, int) const override |
| Not supported. More...
|
|
void | addPoint (const Vector3f &point) |
| Add a single point to the cloud. More...
|
|
void | addPoint (const Vector3f &point, const Vector3f &normal) |
| Add a single point to the cloud. More...
|
|
void | addPoint (const Vector3f &point, const Vector3f &normal, const Colour &colour) |
| Add a single point to the cloud. More...
|
|
void | addPoints (const Vector3f *points, unsigned count) |
| Add a set of points to the cloud. More...
|
|
void | addPoints (const Vector3f *points, const Vector3f *normals, unsigned count) |
| Add a set of points to the cloud. More...
|
|
void | addPoints (const Vector3f *points, const Vector3f *normals, const Colour *colours, unsigned count) |
| Add a set of points to the cloud. More...
|
|
void | setPoint (unsigned index, const Vector3f &point) |
| Replace an existing point. More...
|
|
void | setPoint (unsigned index, const Vector3f &point, const Vector3f &normal) |
| Replace an existing point. More...
|
|
void | setPoint (unsigned index, const Vector3f &point, const Vector3f &normal, const Colour &colour) |
| Replace an existing point. More...
|
|
void | setNormal (unsigned index, const Vector3f &normal) |
| Replace an existing point normal. More...
|
|
void | setColour (unsigned index, const Colour &colour) |
| Replace an existing point colour. More...
|
|
void | setPoints (unsigned index, const Vector3f *points, unsigned count) |
| Replace a set of existing points. More...
|
|
void | setPoints (unsigned index, const Vector3f *points, const Vector3f *normals, unsigned count) |
| Replace a set of existing points. More...
|
|
void | setPoints (unsigned index, const Vector3f *points, const Vector3f *normals, const Colour *colours, unsigned count) |
| Replace a set of existing points. More...
|
|
virtual | ~MeshResource () |
| Virtual destructor.
|
|
uint16_t | typeId () const override |
| Returns MtMesh .
|
|
int | create (PacketWriter &packet) const override |
| Populate a mesh creation packet. More...
|
|
int | destroy (PacketWriter &packet) const override |
| Populate a mesh destroy packet. More...
|
|
int | transfer (PacketWriter &packet, int byteLimit, TransferProgress &progress) const override |
| Populate the next mesh data packet. More...
|
|
*tes::PacketWriter | packet () |
| Compose a mesh index component message in packet . More...
|
|
* | while (offset< mesh->indexCount()) * |
|
virtual | ~Resource () |
| Virtual destructor (empty).
|
|
uint64_t | uniqueKey () const |
| Returns a unique key for this resource, based on the typeId() and id() .
|
|
|
static int | estimateTransferCount (size_t elementSize, unsigned byteLimit, int overhead=0) |
| Estimate the number of elements which can be transferred at the given byteLimit . More...
|
|
*</code > **param packet Packet to write to *param meshId The mesh to which the data belong *param offset An index count offset to start writing from See remarks *param byteLimit A hard limit on the number of bytes to write *param dataSource Base pointer for the index data *param dataStride Number of bytes between indices *param indexByteWidth The byte size of a single index Generally equal to p dataStride *param componentCount The total number of indices *return The number of indices written *static unsigned | writeIndices (PacketWriter &packet, uint32_t meshId, uint32_t offset, unsigned byteLimit, const uint8_t *dataSource, unsigned dataStride, unsigned indexByteWidth, uint32_t componentCount) |
|
*</code > **param packet Packet to write to *param meshId The mesh to which the data belong *param offset An vertex count offset to start writing from See remarks *param byteLimit A hard limit on the number of bytes to write *param dataSource Base pointer for the vertex data *param dataStride Number of bytes between indices *param componentCount The total number of indices *return The number of indices written *static unsigned | writeVectors3 (PacketWriter &packet, uint32_t meshId, uint32_t offset, unsigned byteLimit, const uint8_t *dataSource, unsigned dataStride, uint32_t componentCount) |
|
static unsigned | writeVectors2 (PacketWriter &packet, uint32_t meshId, uint32_t offset, unsigned byteLimit, const uint8_t *dataSource, unsigned dataStride, uint32_t componentCount) |
| Compose a mesh float vector 2 component message in packet . More...
|
|
static unsigned | writeColours (PacketWriter &packet, uint32_t meshId, uint32_t offset, unsigned byteLimit, const uint8_t *dataSource, unsigned dataStride, uint32_t componentCount) |
| Compose a mesh component message for writing colour data in packet . More...
|
|
*const tes::MeshResource * | mesh = |
|
*uint32_t | offset = 0 |
|
*unsigned | dataStride |
|
*unsigned | indexByteWidth |
|
*const uint8_t * | indicesPtr = reinterpret_cast<const uint8_t *>(indices(dataStride, indexByteWidth)) |
|
* | offset |
| Compose a mesh float vector 3 component message in packet . More...
|
|
A MeshResource
which defines a point cloud by its contained vertices.
The PointCloud
supports a set of vertices, normals and colours only. Indices, UVs are not supported.