This defines how a single column is interleaved within a vertex array stored within a Geom.
More...
Classes |
| class | Packer |
| class | Packer_argb_packed |
| class | Packer_color |
| class | Packer_float32_3 |
| class | Packer_float64_3 |
| class | Packer_nativedouble_3 |
| class | Packer_nativefloat_3 |
| class | Packer_point |
| class | Packer_point_float32_2 |
| class | Packer_point_float32_3 |
| class | Packer_point_float32_4 |
| class | Packer_point_float64_2 |
| class | Packer_point_float64_3 |
| class | Packer_point_float64_4 |
| class | Packer_point_nativedouble_2 |
| class | Packer_point_nativedouble_3 |
| class | Packer_point_nativedouble_4 |
| class | Packer_point_nativefloat_2 |
| class | Packer_point_nativefloat_3 |
| class | Packer_point_nativefloat_4 |
| class | Packer_rgba_float32_4 |
| class | Packer_rgba_nativefloat_4 |
| class | Packer_rgba_uint8_4 |
| class | Packer_uint16_1 |
Public Member Functions |
|
| GeomVertexColumn (InternalName *name, int num_components, NumericType numeric_type, Contents contents, int start, int column_alignment=0) |
|
| GeomVertexColumn (const GeomVertexColumn ©) |
| int | compare_to (const GeomVertexColumn &other) const |
| | This is used to unquify columns, and hence formats, for the GeomVertexFormat registry.
|
| int | complete_pointers (TypedWritable **plist, BamReader *manager) |
| | Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
|
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new GeomVertexColumn.
|
| int | get_column_alignment () const |
| | Returns the alignment requirements for this column.
|
| int | get_component_bytes () const |
| | Returns the number of bytes used by each component (that is, by one element of the numeric type).
|
| Contents | get_contents () const |
| | Returns the token representing the semantic meaning of the stored value.
|
| InternalName * | get_name () const |
| | Returns the name of this particular data field, e.g.
|
| int | get_num_components () const |
| | Returns the number of components of the column: the number of instances of the NumericType in each element.
|
| int | get_num_values () const |
| | Returns the number of numeric values of the column: the number of distinct numeric values that go into each element.
|
| NumericType | get_numeric_type () const |
| | Returns the token representing the numeric type of the data storage.
|
| int | get_start () const |
| | Returns the byte within the array record at which this column starts.
|
| int | get_total_bytes () const |
| | Returns the number of bytes used by each element of the column: component_bytes * num_components.
|
| bool | has_homogeneous_coord () const |
| | Returns true if this Contents type is one that includes a homogeneous coordinate in the fourth component, or false otherwise.
|
| bool | is_bytewise_equivalent (const GeomVertexColumn &other) const |
| | Returns true if the data store of this column is exactly the same as that of the other, irrespective of name or start position within the record.
|
| bool | is_packed_argb () const |
| | Returns true if this column is the standard DirectX representation of 4-component color: C_color, in NT_packed_dabc, with 1 component (4 values).
|
| bool | is_uint8_rgba () const |
| | Returns true if this column is the standard OpenGL representation of 4-component color: C_color, in NT_uint8, with 4 components.
|
|
bool | operator!= (const GeomVertexColumn &other) const |
| bool | operator< (const GeomVertexColumn &other) const |
| | This is used to put columns in order within a particular GeomVertexArrayFormat.
|
|
void | operator= (const GeomVertexColumn ©) |
| bool | operator== (const GeomVertexColumn &other) const |
| | Returns true if the two columns are exactly equivalent, false otherwise.
|
|
void | output (ostream &out) const |
| bool | overlaps_with (int start_byte, int num_bytes) const |
| | Returns true if this column overlaps with any of the bytes in the indicated range, false if it does not.
|
| void | write_datagram (BamWriter *manager, Datagram &dg) |
| | Writes the contents of this object to the datagram for shipping out to a Bam file.
|
Friends |
|
class | GeomVertexArrayFormat |
|
class | GeomVertexReader |
|
class | GeomVertexWriter |
This defines how a single column is interleaved within a vertex array stored within a Geom.
The GeomVertexArrayFormat class maintains a list of these to completely define a particular array structure.
Definition at line 40 of file geomVertexColumn.h.