Assimp  v3.1.1 (June 2014)
glTF::Accessor Struct Reference

A typed view into a BufferView. More...

Inherits glTF::Object.

Classes

class  Indexer
 Helper class to iterate the data. More...
 

Public Member Functions

 Accessor ()
 
template<class T >
bool ExtractData (T *&outData)
 
unsigned int GetBytesPerComponent ()
 
unsigned int GetElementSize ()
 
Indexer GetIndexer ()
 
unsigned int GetNumComponents ()
 
uint8_tGetPointer ()
 
void Read (Value &obj, Asset &r)
 
void WriteData (size_t count, const void *src_buffer, size_t src_stride)
 
- Public Member Functions inherited from glTF::Object
virtual bool IsSpecial () const
 Objects marked as special are not exported (used to emulate the binary body buffer) More...
 
virtual ~Object ()
 

Public Attributes

Ref< BufferViewbufferView
 The ID of the bufferView. (required) More...
 
unsigned int byteOffset
 The offset relative to the start of the bufferView in bytes. (required) More...
 
unsigned int byteStride
 The stride, in bytes, between attributes referenced by this accessor. (default: 0) More...
 
ComponentType componentType
 The datatype of components in the attribute. (required) More...
 
unsigned int count
 The number of attributes referenced by this accessor. (required) More...
 
AttribType::Value type
 Specifies if the attribute is a scalar, vector, or matrix. (required) More...
 
- Public Attributes inherited from glTF::Object
std::string id
 The globally unique ID used to reference this object. More...
 
std::string name
 The user-defined name of this object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from glTF::Object
static const char * TranslateId (Asset &r, const char *id)
 Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
 

Detailed Description

A typed view into a BufferView.

A BufferView contains raw binary data. An accessor provides a typed view into a BufferView or a subset of a BufferView

Constructor & Destructor Documentation

glTF::Accessor::Accessor ( )
inline

Member Function Documentation

template<class T >
bool glTF::Accessor::ExtractData ( T *&  outData)
unsigned int glTF::Accessor::GetBytesPerComponent ( )
inline
unsigned int glTF::Accessor::GetElementSize ( )
inline
Indexer glTF::Accessor::GetIndexer ( )
inline
unsigned int glTF::Accessor::GetNumComponents ( )
inline
uint8_t * glTF::Accessor::GetPointer ( )
inline
void glTF::Accessor::Read ( Value obj,
Asset r 
)
inline
void glTF::Accessor::WriteData ( size_t  count,
const void src_buffer,
size_t  src_stride 
)
inline

Member Data Documentation

Ref<BufferView> glTF::Accessor::bufferView

The ID of the bufferView. (required)

unsigned int glTF::Accessor::byteOffset

The offset relative to the start of the bufferView in bytes. (required)

unsigned int glTF::Accessor::byteStride

The stride, in bytes, between attributes referenced by this accessor. (default: 0)

ComponentType glTF::Accessor::componentType

The datatype of components in the attribute. (required)

unsigned int glTF::Accessor::count

The number of attributes referenced by this accessor. (required)

AttribType::Value glTF::Accessor::type

Specifies if the attribute is a scalar, vector, or matrix. (required)


The documentation for this struct was generated from the following files: