PeriDyno 0.8.2
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
ofbx::GeometryImpl Struct Reference
Inheritance diagram for ofbx::GeometryImpl:
Inheritance graph
[legend]
Collaboration diagram for ofbx::GeometryImpl:
Collaboration graph
[legend]

Classes

struct  NewVertex
 

Public Types

enum  VertexDataMapping { BY_POLYGON_VERTEX , BY_POLYGON , BY_VERTEX }
 
- 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 Member Functions

 GeometryImpl (const Scene &_scene, const IElement &_element)
 
Type getType () const override
 
int getVertexCount () const override
 
const int * getFaceIndices () const override
 
int getIndexCount () const override
 
const Vec3getVertices () const override
 
const Vec3getNormals () const override
 
const Vec2getUVs (int index=0) const override
 
const Vec4getColors () const override
 
const Vec3getTangents () const override
 
const SkingetSkin () const override
 
const BlendShapegetBlendShape () const override
 
const int * getMaterials () const override
 
- Public Member Functions inherited from ofbx::Geometry
 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
 

Public Attributes

std::vector< Vec3vertices
 
std::vector< Vec3normals
 
std::vector< Vec2uvs [s_uvs_max]
 
std::vector< Vec4colors
 
std::vector< Vec3tangents
 
std::vector< int > materials
 
const Skinskin = nullptr
 
const BlendShapeblendShape = nullptr
 
std::vector< int > indices
 
std::vector< int > to_old_vertices
 
std::vector< NewVertexto_new_vertices
 
- Public Attributes inherited from ofbx::Object
u64 id
 
char name [128]
 
const IElementelement
 
const Objectnode_attribute
 

Additional Inherited Members

- Static Public Attributes inherited from ofbx::Geometry
static const Type s_type = Type::GEOMETRY
 
static const int s_uvs_max = 4
 
- Protected Attributes inherited from ofbx::Object
bool is_node
 
const Scenescene
 

Detailed Description

Definition at line 1174 of file ofbx.cpp.

Member Enumeration Documentation

◆ VertexDataMapping

Enumerator
BY_POLYGON_VERTEX 
BY_POLYGON 
BY_VERTEX 

Definition at line 1176 of file ofbx.cpp.

Constructor & Destructor Documentation

◆ GeometryImpl()

ofbx::GeometryImpl::GeometryImpl ( const Scene _scene,
const IElement _element 
)
inline

Definition at line 1205 of file ofbx.cpp.

Member Function Documentation

◆ getBlendShape()

const BlendShape * ofbx::GeometryImpl::getBlendShape ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1221 of file ofbx.cpp.

◆ getColors()

const Vec4 * ofbx::GeometryImpl::getColors ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1218 of file ofbx.cpp.

◆ getFaceIndices()

const int * ofbx::GeometryImpl::getFaceIndices ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1213 of file ofbx.cpp.

◆ getIndexCount()

int ofbx::GeometryImpl::getIndexCount ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1214 of file ofbx.cpp.

◆ getMaterials()

const int * ofbx::GeometryImpl::getMaterials ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1222 of file ofbx.cpp.

◆ getNormals()

const Vec3 * ofbx::GeometryImpl::getNormals ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1216 of file ofbx.cpp.

◆ getSkin()

const Skin * ofbx::GeometryImpl::getSkin ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1220 of file ofbx.cpp.

◆ getTangents()

const Vec3 * ofbx::GeometryImpl::getTangents ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1219 of file ofbx.cpp.

◆ getType()

Type ofbx::GeometryImpl::getType ( ) const
inlineoverridevirtual

Implements ofbx::Object.

Definition at line 1211 of file ofbx.cpp.

◆ getUVs()

const Vec2 * ofbx::GeometryImpl::getUVs ( int  index = 0) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1217 of file ofbx.cpp.

◆ getVertexCount()

int ofbx::GeometryImpl::getVertexCount ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1212 of file ofbx.cpp.

◆ getVertices()

const Vec3 * ofbx::GeometryImpl::getVertices ( ) const
inlineoverridevirtual

Implements ofbx::Geometry.

Definition at line 1215 of file ofbx.cpp.

Member Data Documentation

◆ blendShape

const BlendShape* ofbx::GeometryImpl::blendShape = nullptr

Definition at line 1199 of file ofbx.cpp.

◆ colors

std::vector<Vec4> ofbx::GeometryImpl::colors

Definition at line 1194 of file ofbx.cpp.

◆ indices

std::vector<int> ofbx::GeometryImpl::indices

Definition at line 1201 of file ofbx.cpp.

◆ materials

std::vector<int> ofbx::GeometryImpl::materials

Definition at line 1196 of file ofbx.cpp.

◆ normals

std::vector<Vec3> ofbx::GeometryImpl::normals

Definition at line 1192 of file ofbx.cpp.

◆ skin

const Skin* ofbx::GeometryImpl::skin = nullptr

Definition at line 1198 of file ofbx.cpp.

◆ tangents

std::vector<Vec3> ofbx::GeometryImpl::tangents

Definition at line 1195 of file ofbx.cpp.

◆ to_new_vertices

std::vector<NewVertex> ofbx::GeometryImpl::to_new_vertices

Definition at line 1203 of file ofbx.cpp.

◆ to_old_vertices

std::vector<int> ofbx::GeometryImpl::to_old_vertices

Definition at line 1202 of file ofbx.cpp.

◆ uvs

std::vector<Vec2> ofbx::GeometryImpl::uvs[s_uvs_max]

Definition at line 1193 of file ofbx.cpp.

◆ vertices

std::vector<Vec3> ofbx::GeometryImpl::vertices

Definition at line 1191 of file ofbx.cpp.


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