PeriDyno 0.8.2
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
ofbx::Object Struct Referenceabstract

#include <ofbx.h>

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

Public Types

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 Member Functions

 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
 

Public Attributes

u64 id
 
char name [128]
 
const IElementelement
 
const Objectnode_attribute
 

Protected Attributes

bool is_node
 
const Scenescene
 

Detailed Description

Definition at line 159 of file ofbx.h.

Member Enumeration Documentation

◆ Type

enum class ofbx::Object::Type
strong
Enumerator
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 

Definition at line 161 of file ofbx.h.

Constructor & Destructor Documentation

◆ Object()

ofbx::Object::Object ( const Scene _scene,
const IElement _element 
)

Definition at line 509 of file ofbx.cpp.

◆ ~Object()

virtual ofbx::Object::~Object ( )
inlinevirtual

Definition at line 185 of file ofbx.h.

Member Function Documentation

◆ evalLocal() [1/2]

Matrix ofbx::Object::evalLocal ( const Vec3 translation,
const Vec3 rotation 
) const

Definition at line 3428 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalLocal() [2/2]

Matrix ofbx::Object::evalLocal ( const Vec3 translation,
const Vec3 rotation,
const Vec3 scaling 
) const

Definition at line 3434 of file ofbx.cpp.

Here is the call graph for this function:

◆ getGlobalTransform()

Matrix ofbx::Object::getGlobalTransform ( ) const

Definition at line 3500 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLocalRotation()

Vec3 ofbx::Object::getLocalRotation ( ) const

Definition at line 3488 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLocalScaling()

Vec3 ofbx::Object::getLocalScaling ( ) const

Definition at line 3494 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLocalTransform()

Matrix ofbx::Object::getLocalTransform ( ) const

Definition at line 3509 of file ofbx.cpp.

Here is the call graph for this function:

◆ getLocalTranslation()

Vec3 ofbx::Object::getLocalTranslation ( ) const

Definition at line 3476 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getParent()

Object * ofbx::Object::getParent ( ) const

Definition at line 3578 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPostRotation()

Vec3 ofbx::Object::getPostRotation ( ) const

Definition at line 3410 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPreRotation()

Vec3 ofbx::Object::getPreRotation ( ) const

Definition at line 3482 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRotationOffset()

Vec3 ofbx::Object::getRotationOffset ( ) const

Definition at line 3398 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRotationOrder()

RotationOrder ofbx::Object::getRotationOrder ( ) const

Definition at line 3391 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRotationPivot()

Vec3 ofbx::Object::getRotationPivot ( ) const

Definition at line 3404 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getScalingOffset()

Vec3 ofbx::Object::getScalingOffset ( ) const

Definition at line 3416 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getScalingPivot()

Vec3 ofbx::Object::getScalingPivot ( ) const

Definition at line 3422 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getScene()

const IScene & ofbx::Object::getScene ( ) const

Definition at line 3531 of file ofbx.cpp.

◆ getType()

virtual Type ofbx::Object::getType ( ) const
pure virtual

◆ isNode()

bool ofbx::Object::isNode ( ) const
inline

Definition at line 210 of file ofbx.h.

Here is the caller graph for this function:

◆ resolveObjectLink() [1/3]

Object * ofbx::Object::resolveObjectLink ( int  idx) const

Definition at line 3537 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveObjectLink() [2/3]

template<typename T >
T * ofbx::Object::resolveObjectLink ( int  idx) const
inline

Definition at line 213 of file ofbx.h.

Here is the call graph for this function:

◆ resolveObjectLink() [3/3]

Object * ofbx::Object::resolveObjectLink ( Object::Type  type,
const char *  property,
int  idx 
) const

Definition at line 3556 of file ofbx.cpp.

Here is the call graph for this function:

◆ resolveObjectLinkReverse()

Object * ofbx::Object::resolveObjectLinkReverse ( Object::Type  type) const

Definition at line 3515 of file ofbx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ element

const IElement& ofbx::Object::element

Definition at line 220 of file ofbx.h.

◆ id

u64 ofbx::Object::id

Definition at line 218 of file ofbx.h.

◆ is_node

bool ofbx::Object::is_node
protected

Definition at line 224 of file ofbx.h.

◆ name

char ofbx::Object::name[128]

Definition at line 219 of file ofbx.h.

◆ node_attribute

const Object* ofbx::Object::node_attribute

Definition at line 221 of file ofbx.h.

◆ scene

const Scene& ofbx::Object::scene
protected

Definition at line 225 of file ofbx.h.


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