PeriDyno 0.8.2
Public Member Functions | Static Public Attributes | List of all members
ofbx::Geometry Struct Referenceabstract

#include <ofbx.h>

Inheritance diagram for ofbx::Geometry:
Inheritance graph
[legend]
Collaboration diagram for ofbx::Geometry:
Collaboration graph
[legend]

Public Member Functions

 Geometry (const Scene &_scene, const IElement &_element)
 
virtual const Vec3getVertices () const =0
 
virtual int getVertexCount () const =0
 
virtual const int * getFaceIndices () const =0
 
virtual int getIndexCount () const =0
 
virtual const Vec3getNormals () const =0
 
virtual const Vec2getUVs (int index=0) const =0
 
virtual const Vec4getColors () const =0
 
virtual const Vec3getTangents () const =0
 
virtual const SkingetSkin () const =0
 
virtual const BlendShapegetBlendShape () const =0
 
virtual const int * getMaterials () const =0
 
- Public Member Functions inherited from ofbx::Object
 Object (const Scene &_scene, const IElement &_element)
 
virtual ~Object ()
 
virtual Type getType () const =0
 
const IScenegetScene () const
 
ObjectresolveObjectLink (int idx) const
 
ObjectresolveObjectLink (Type type, const char *property, int idx) const
 
ObjectresolveObjectLinkReverse (Type type) const
 
ObjectgetParent () const
 
RotationOrder getRotationOrder () const
 
Vec3 getRotationOffset () const
 
Vec3 getRotationPivot () const
 
Vec3 getPostRotation () const
 
Vec3 getScalingOffset () const
 
Vec3 getScalingPivot () const
 
Vec3 getPreRotation () const
 
Vec3 getLocalTranslation () const
 
Vec3 getLocalRotation () const
 
Vec3 getLocalScaling () const
 
Matrix getGlobalTransform () const
 
Matrix getLocalTransform () const
 
Matrix evalLocal (const Vec3 &translation, const Vec3 &rotation) const
 
Matrix evalLocal (const Vec3 &translation, const Vec3 &rotation, const Vec3 &scaling) const
 
bool isNode () const
 
template<typename T >
TresolveObjectLink (int idx) const
 

Static Public Attributes

static const Type s_type = Type::GEOMETRY
 
static const int s_uvs_max = 4
 

Additional Inherited Members

- Public Types inherited from ofbx::Object
enum class  Type {
  ROOT , GEOMETRY , SHAPE , MATERIAL ,
  MESH , TEXTURE , LIMB_NODE , NULL_NODE ,
  NODE_ATTRIBUTE , CLUSTER , SKIN , BLEND_SHAPE ,
  BLEND_SHAPE_CHANNEL , ANIMATION_STACK , ANIMATION_LAYER , ANIMATION_CURVE ,
  ANIMATION_CURVE_NODE , POSE
}
 
- Public Attributes inherited from ofbx::Object
u64 id
 
char name [128]
 
const IElementelement
 
const Objectnode_attribute
 
- Protected Attributes inherited from ofbx::Object
bool is_node
 
const Scenescene
 

Detailed Description

Definition at line 346 of file ofbx.h.

Constructor & Destructor Documentation

◆ Geometry()

Geometry::Geometry ( const Scene _scene,
const IElement _element 
)

Definition at line 1168 of file ofbx.cpp.

Member Function Documentation

◆ getBlendShape()

virtual const BlendShape * ofbx::Geometry::getBlendShape ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getColors()

virtual const Vec4 * ofbx::Geometry::getColors ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getFaceIndices()

virtual const int * ofbx::Geometry::getFaceIndices ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getIndexCount()

virtual int ofbx::Geometry::getIndexCount ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getMaterials()

virtual const int * ofbx::Geometry::getMaterials ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getNormals()

virtual const Vec3 * ofbx::Geometry::getNormals ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getSkin()

virtual const Skin * ofbx::Geometry::getSkin ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getTangents()

virtual const Vec3 * ofbx::Geometry::getTangents ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getUVs()

virtual const Vec2 * ofbx::Geometry::getUVs ( int  index = 0) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getVertexCount()

virtual int ofbx::Geometry::getVertexCount ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

◆ getVertices()

virtual const Vec3 * ofbx::Geometry::getVertices ( ) const
pure virtual

Implemented in ofbx::GeometryImpl.

Member Data Documentation

◆ s_type

const Type ofbx::Geometry::s_type = Type::GEOMETRY
static

Definition at line 348 of file ofbx.h.

◆ s_uvs_max

const int ofbx::Geometry::s_uvs_max = 4
static

Definition at line 349 of file ofbx.h.


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