Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Loading options used by LoadWriterDae and DaeLoader. More...
#include <ioDae.hpp>
Public Types | |
enum | TransparencyOption { TransparencyKeep, TransparencyInvert, TransparencyAuto } |
Public Member Functions | |
LoadOptions () | |
void | setFlattenTransformHierarchy (bool flatten) |
If true the <node>'s transform hierachy is flattened and baked inside the Actor::transform(), otherwise the full transform tree is exported. Enabled by default. More... | |
bool | flattenTransformHierarchy () const |
If true the <node>'s transform hierachy is flattened and baked inside the Actor::transform(), otherwise the full transform tree is exported. Enabled by default. More... | |
void | setUseAlwaysMipmapping (bool use) |
If true then TPF_LINEAR_MIPMAP_NEAREST filtering is used when a non-mipmapped filter is specified. Enabled by default. More... | |
bool | useAlwaysMipmapping () const |
If true then TPF_LINEAR_MIPMAP_NEAREST filtering is used when a non-mipmapped filter is specified. Enabled by default. More... | |
void | setInvertTransparency (TransparencyOption invert) |
Invert the value of the <transparency> tag. Set to TransparencyAuto by default. More... | |
TransparencyOption | invertTransparency () const |
Invert the value of the <transparency> tag. Set to TransparencyAuto by default. More... | |
void | setComputeMissingNormals (bool compute) |
Compute normals for those objects that don't have. Enabled by default. More... | |
bool | computeMissingNormals () const |
Compute normals for those objects that don't have. Enabled by default. More... | |
void | setFixBadNormals (bool fix) |
Fix normals that are flipped compared to the polygon winding order. Enabled by default. More... | |
bool | fixBadNormals () const |
Fix normals that are flipped compared to the polygon winding order. Enabled by default. More... | |
void | setExtractSkins (bool extract) |
If set to true the skinned geometries will be also exported. Enabled by default. More... | |
bool | extractSkins () const |
If set to true the skinned geometries will be also exported. Enabled by default. More... | |
void | setMergeDrawCalls (bool merge) |
If set to true merges all the draw calls of each Geometry into one triangle and/or one triangle strip draw call. Enabled by default. More... | |
bool | mergeDrawCalls () const |
If set to true merges all the draw calls of each Geometry into one triangle and/or one triangle strip draw call. Enabled by default. More... | |
void | setLightMeshSize (float size) |
If size != 0 a mesh will be generated and exported for each light source. More... | |
float | lightMeshSize () const |
If size != 0 a mesh will be generated and exported for each light source. More... | |
void | setExportLights (bool exp_lights) |
If true the lights contained in the COLLADA file will be exported otherwise one single dummy light will be used to lit the models. More... | |
bool | exportLights () const |
If true the lights contained in the COLLADA file will be exported otherwise one single dummy light will be used to lit the models. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Attributes | |
TransparencyOption | mInvertTransparency |
bool | mFlattenTransformHierarchy |
bool | mUseAlwaysMipmapping |
bool | mComputeMissingNormals |
bool | mFixBadNormals |
bool | mExtractSkins |
bool | mMergeDrawCalls |
float | mLightMeshSize |
bool | mExportLights |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Loading options used by LoadWriterDae and DaeLoader.
|
inline |
Definition at line 65 of file ioDae.hpp.
References mComputeMissingNormals, mExportLights, mExtractSkins, mFixBadNormals, mFlattenTransformHierarchy, mInvertTransparency, mLightMeshSize, mMergeDrawCalls, mUseAlwaysMipmapping, and TransparencyAuto.
Referenced by vl::LoadWriterDae::LoadWriterDae().
|
inline |
Compute normals for those objects that don't have. Enabled by default.
Definition at line 100 of file ioDae.hpp.
References mComputeMissingNormals.
Referenced by vl::DaeLoader::load().
|
inline |
If true the lights contained in the COLLADA file will be exported otherwise one single dummy light will be used to lit the models.
Definition at line 134 of file ioDae.hpp.
References mExportLights.
|
inline |
If set to true the skinned geometries will be also exported. Enabled by default.
Definition at line 112 of file ioDae.hpp.
References mExtractSkins.
Referenced by vl::DaeLoader::parseNode().
|
inline |
Fix normals that are flipped compared to the polygon winding order. Enabled by default.
Definition at line 106 of file ioDae.hpp.
References mFixBadNormals.
Referenced by vl::DaeLoader::generateGeometry().
|
inline |
If true the <node>'s transform hierachy is flattened and baked inside the Actor::transform(), otherwise the full transform tree is exported. Enabled by default.
Definition at line 82 of file ioDae.hpp.
References mFlattenTransformHierarchy.
|
inline |
Invert the value of the <transparency> tag. Set to TransparencyAuto by default.
Definition at line 94 of file ioDae.hpp.
References mInvertTransparency.
|
inline |
If size != 0 a mesh will be generated and exported for each light source.
If size == 0 no light-mesh will be generated. The generated meshes will be a sphere for point lights, a pyramid for directional light, a cone for spotlights, a torus for ambient lights. Such meshes will be renamed "LightMesh-"+<name of="" the="" light="" object="" they="" represent>="">.
Definition at line 128 of file ioDae.hpp.
References mLightMeshSize.
|
inline |
If set to true merges all the draw calls of each Geometry into one triangle and/or one triangle strip draw call. Enabled by default.
Definition at line 118 of file ioDae.hpp.
References mMergeDrawCalls.
|
inline |
Compute normals for those objects that don't have. Enabled by default.
Definition at line 97 of file ioDae.hpp.
References mComputeMissingNormals.
|
inline |
If true the lights contained in the COLLADA file will be exported otherwise one single dummy light will be used to lit the models.
Definition at line 131 of file ioDae.hpp.
References mExportLights.
|
inline |
If set to true the skinned geometries will be also exported. Enabled by default.
Definition at line 109 of file ioDae.hpp.
References mExtractSkins.
|
inline |
Fix normals that are flipped compared to the polygon winding order. Enabled by default.
Definition at line 103 of file ioDae.hpp.
References mFixBadNormals.
|
inline |
If true the <node>'s transform hierachy is flattened and baked inside the Actor::transform(), otherwise the full transform tree is exported. Enabled by default.
Definition at line 79 of file ioDae.hpp.
References mFlattenTransformHierarchy.
|
inline |
Invert the value of the <transparency> tag. Set to TransparencyAuto by default.
Definition at line 91 of file ioDae.hpp.
References mInvertTransparency.
|
inline |
If size != 0 a mesh will be generated and exported for each light source.
If size == 0 no light-mesh will be generated. The generated meshes will be a sphere for point lights, a pyramid for directional light, a cone for spotlights, a torus for ambient lights. Such meshes will be renamed "LightMesh-"+<name of="" the="" light="" object="" they="" represent>="">.
Definition at line 123 of file ioDae.hpp.
References mLightMeshSize.
|
inline |
If set to true merges all the draw calls of each Geometry into one triangle and/or one triangle strip draw call. Enabled by default.
Definition at line 115 of file ioDae.hpp.
References mMergeDrawCalls.
|
inline |
If true then TPF_LINEAR_MIPMAP_NEAREST filtering is used when a non-mipmapped filter is specified. Enabled by default.
Definition at line 85 of file ioDae.hpp.
References mUseAlwaysMipmapping.
|
inline |
If true then TPF_LINEAR_MIPMAP_NEAREST filtering is used when a non-mipmapped filter is specified. Enabled by default.
Definition at line 88 of file ioDae.hpp.
References mUseAlwaysMipmapping.
|
protected |
Definition at line 140 of file ioDae.hpp.
Referenced by computeMissingNormals(), LoadOptions(), and setComputeMissingNormals().
|
protected |
Definition at line 145 of file ioDae.hpp.
Referenced by exportLights(), LoadOptions(), and setExportLights().
|
protected |
Definition at line 142 of file ioDae.hpp.
Referenced by extractSkins(), LoadOptions(), and setExtractSkins().
|
protected |
Definition at line 141 of file ioDae.hpp.
Referenced by fixBadNormals(), LoadOptions(), and setFixBadNormals().
|
protected |
Definition at line 138 of file ioDae.hpp.
Referenced by flattenTransformHierarchy(), LoadOptions(), and setFlattenTransformHierarchy().
|
protected |
Definition at line 137 of file ioDae.hpp.
Referenced by invertTransparency(), LoadOptions(), and setInvertTransparency().
|
protected |
Definition at line 144 of file ioDae.hpp.
Referenced by lightMeshSize(), LoadOptions(), and setLightMeshSize().
|
protected |
Definition at line 143 of file ioDae.hpp.
Referenced by LoadOptions(), mergeDrawCalls(), and setMergeDrawCalls().
|
protected |
Definition at line 139 of file ioDae.hpp.
Referenced by LoadOptions(), setUseAlwaysMipmapping(), and useAlwaysMipmapping().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:51.
© Copyright Michele Bosi. All rights reserved.