# GeomVertexColumn

from pandac.PandaModules import GeomVertexColumn

Class : GeomVertexColumn
Description : 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.

## Inheritance:

GeomVertexColumn: GeomEnums
GeomEnums:

## Methods of GeomVertexColumn:

GeomVertexColumn (Constructor)
getComponentBytes
getContents
getName
getNumComponents
getNumericType
getNumValues
getStart
getTotalBytes
hasHomogeneousCoord
isBytewiseEquivalent
operator =
output
overlapsWith

## Constants in GeomEnums:

UHClient | (UsageHint)
UHStream | (UsageHint)
UHDynamic | (UsageHint)
UHStatic | (UsageHint)
UHUnspecified | (UsageHint)
GRIndexedPoint | (GeomRendering)
GRIndexedOther | (GeomRendering)
GRIndexedBits | (GeomRendering)
GRPoint | (GeomRendering)
GRPointUniformSize | (GeomRendering)
GRPerPointSize | (GeomRendering)
GRPointPerspective | (GeomRendering)
GRPointAspectRatio | (GeomRendering)
GRPointScale | (GeomRendering)
GRPointRotate | (GeomRendering)
GRPointSprite | (GeomRendering)
GRPointSpriteTexMatrix | (GeomRendering)
GRPointBits | (GeomRendering)
GRTriangleStrip | (GeomRendering)
GRTriangleFan | (GeomRendering)
GRLineStrip | (GeomRendering)
GRCompositeBits | (GeomRendering)
GRFlatFirstVertex | (GeomRendering)
GRFlatLastVertex | (GeomRendering)
GRShadeModelBits | (GeomRendering)
GRTexcoordLightVector | (GeomRendering)
SMUniform | (ShadeModel)
SMSmooth | (ShadeModel)
SMFlatFirstVertex | (ShadeModel)
SMFlatLastVertex | (ShadeModel)
PTNone | (PrimitiveType)
PTPolygons | (PrimitiveType)
PTLines | (PrimitiveType)
PTPoints | (PrimitiveType)
NTUint8 | (NumericType)
NTUint16 | (NumericType)
NTUint32 | (NumericType)
NTPackedDcba | (NumericType)
NTPackedDabc | (NumericType)
NTFloat32 | (NumericType)
COther | (Contents)
CPoint | (Contents)
CClipPoint | (Contents)
CVector | (Contents)
CTexcoord | (Contents)
CColor | (Contents)
CIndex | (Contents)
CMorphDelta | (Contents)
ATNone | (AnimationType)
ATPanda | (AnimationType)
ATHardware | (AnimationType)

GeomVertexColumn GeomVertexColumn::GeomVertexColumn(InternalName *name, int num_components, GeomEnums::NumericType numeric_type, GeomEnums::Contents contents, int start); Description: Creates an invalid column. Used on when constructing from a bam file. Description:

getComponentBytes int GeomVertexColumn::get_component_bytes(void) const; Description: Returns the number of bytes used by each component (that is, by one element of the numeric type).

getContents GeomEnums::Contents GeomVertexColumn::get_contents(void) const; Description: Returns the token representing the semantic meaning of the stored value.

getName InternalName *GeomVertexColumn::get_name(void) const; Description: Returns the name of this particular data field, e.g. "vertex" or "normal". The name may be a user-defined string, or it may be one of the standard system-defined field types. Only the system-defined field types are used for the actual rendering.

getNumComponents int GeomVertexColumn::get_num_components(void) const; Description: Returns the number of components of the column: the number of instances of the NumericType in each element. This is usually, but not always, the same thing as get_num_values().

getNumericType GeomEnums::NumericType GeomVertexColumn::get_numeric_type(void) const; Description: Returns the token representing the numeric type of the data storage.

getNumValues int GeomVertexColumn::get_num_values(void) const; Description: Returns the number of numeric values of the column: the number of distinct numeric values that go into each element. This is usually, but not always, the same thing as get_num_components(); the difference is in the case of a composite numeric type like NT_packed_dcba, which has four numeric values per component.

getStart int GeomVertexColumn::get_start(void) const; Description: Returns the byte within the array record at which this column starts. This can be set to non-zero to implement interleaved arrays.

getTotalBytes int GeomVertexColumn::get_total_bytes(void) const; Description: Returns the number of bytes used by each element of the column: component_bytes * num_components.

hasHomogeneousCoord bool GeomVertexColumn::has_homogeneous_coord(void) const; Description: Returns true if this Contents type is one that includes a homogeneous coordinate in the fourth component, or false otherwise. If this is true, correct operation on the vertex data may require scaling by the homogeneous coordinate from time to time (but in general this is handled automatically if you use the 3-component or smaller forms of get_data() and set_data()).

isBytewiseEquivalent bool GeomVertexColumn::is_bytewise_equivalent(GeomVertexColumn const &other) const; Description: 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.

operator = void GeomVertexColumn::operator =(GeomVertexColumn const &copy); Description:

output void GeomVertexColumn::output(ostream &out) const; Description:

overlapsWith bool GeomVertexColumn::overlaps_with(int start_byte, int num_bytes) const; Description: Returns true if this column overlaps with any of the bytes in the indicated range, false if it does not.