# Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics

[Home] [Tutorials] [All Classes] [Grouped Classes]

Public Types | Public Member Functions | Protected Attributes

# vl::LoadWriterDae::LoadOptions Class Reference

Loading options used by LoadWriterDae and DaeLoader. More...

`#include <ioDae.hpp>`

Inheritance diagram for vl::LoadWriterDae::LoadOptions:

List of all members.

## 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.
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.
void | setUseAlwaysMipmapping (bool use)
| If true then TPF_LINEAR_MIPMAP_NEAREST filtering is used when a non-mipmapped filter is specified. Enabled by default.
bool | useAlwaysMipmapping () const
| If true then TPF_LINEAR_MIPMAP_NEAREST filtering is used when a non-mipmapped filter is specified. Enabled by default.
void | setInvertTransparency (TransparencyOption invert)
| Invert the value of the <transparency> tag. Set to TransparencyAuto by default.
TransparencyOption | invertTransparency () const
| Invert the value of the <transparency> tag. Set to TransparencyAuto by default.
void | setComputeMissingNormals (bool compute)
| Compute normals for those objects that don't have. Enabled by default.
bool | computeMissingNormals () const
| Compute normals for those objects that don't have. Enabled by default.
void | setFixBadNormals (bool fix)
| Fix normals that are flipped compared to the polygon winding order. Enabled by default.
bool | fixBadNormals () const
| Fix normals that are flipped compared to the polygon winding order. Enabled by default.
void | setExtractSkins (bool extract)
| If set to true the skinned geometries will be also exported. Enabled by default.
bool | extractSkins () const
| If set to true the skinned geometries will be also exported. Enabled by default.
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.
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.
void | setLightMeshSize (float size)
| If size != 0 a mesh will be generated and exported for each light source.
float | lightMeshSize () const
| If size != 0 a mesh will be generated and exported for each light source.
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.
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.

## Protected Attributes

TransparencyOption | mInvertTransparency
bool | mFlattenTransformHierarchy
bool | mUseAlwaysMipmapping
bool | mComputeMissingNormals
bool | mFixBadNormals
bool | mExtractSkins
bool | mMergeDrawCalls
float | mLightMeshSize
bool | mExportLights

## Detailed Description

Loading options used by LoadWriterDae and DaeLoader.

Definition at line 54 of file ioDae.hpp.

## Member Enumeration Documentation

enum vl::LoadWriterDae::LoadOptions::TransparencyOption

Enumerator:

  TransparencyKeep | < Keep the <transparency> value as it is.
  TransparencyInvert | < Transparency becomes 1.0 - <transparency>.
  TransparencyAuto | < Transparency is inverted if <authoring_tool> contains the string "Google" or reports ColladaMax or ColladaMaya version less than 3.03.

Definition at line 57 of file ioDae.hpp.

## Constructor & Destructor Documentation

vl::LoadWriterDae::LoadOptions::LoadOptions | ( | ) | `[inline]`

Definition at line 65 of file ioDae.hpp.

References mComputeMissingNormals, mExportLights, mExtractSkins, mFixBadNormals, mFlattenTransformHierarchy, mInvertTransparency, mLightMeshSize, mMergeDrawCalls, mUseAlwaysMipmapping, and TransparencyAuto.

## Member Function Documentation

void vl::LoadWriterDae::LoadOptions::setFlattenTransformHierarchy | ( | bool | flatten ) | `[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.

bool vl::LoadWriterDae::LoadOptions::flattenTransformHierarchy | ( | ) | const`[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.

void vl::LoadWriterDae::LoadOptions::setUseAlwaysMipmapping | ( | bool | use ) | `[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.

bool vl::LoadWriterDae::LoadOptions::useAlwaysMipmapping | ( | ) | const`[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.

void vl::LoadWriterDae::LoadOptions::setInvertTransparency | ( | TransparencyOption | invert ) | `[inline]`

Invert the value of the <transparency> tag. Set to TransparencyAuto by default.

Definition at line 91 of file ioDae.hpp.

References mInvertTransparency.

TransparencyOption vl::LoadWriterDae::LoadOptions::invertTransparency | ( | ) | const`[inline]`

Invert the value of the <transparency> tag. Set to TransparencyAuto by default.

Definition at line 94 of file ioDae.hpp.

References mInvertTransparency.

void vl::LoadWriterDae::LoadOptions::setComputeMissingNormals | ( | bool | compute ) | `[inline]`

Compute normals for those objects that don't have. Enabled by default.

Definition at line 97 of file ioDae.hpp.

References mComputeMissingNormals.

bool vl::LoadWriterDae::LoadOptions::computeMissingNormals | ( | ) | const`[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().

void vl::LoadWriterDae::LoadOptions::setFixBadNormals | ( | bool | fix ) | `[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.

bool vl::LoadWriterDae::LoadOptions::fixBadNormals | ( | ) | const`[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().

void vl::LoadWriterDae::LoadOptions::setExtractSkins | ( | bool | extract ) | `[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.

bool vl::LoadWriterDae::LoadOptions::extractSkins | ( | ) | const`[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().

void vl::LoadWriterDae::LoadOptions::setMergeDrawCalls | ( | bool | merge ) | `[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.

bool vl::LoadWriterDae::LoadOptions::mergeDrawCalls | ( | ) | const`[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.

void vl::LoadWriterDae::LoadOptions::setLightMeshSize | ( | float | size ) | `[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.

float vl::LoadWriterDae::LoadOptions::lightMeshSize | ( | ) | const`[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.

void vl::LoadWriterDae::LoadOptions::setExportLights | ( | bool | exp_lights ) | `[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.

bool vl::LoadWriterDae::LoadOptions::exportLights | ( | ) | const`[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.

## Member Data Documentation

TransparencyOption vl::LoadWriterDae::LoadOptions::mInvertTransparency`[protected]`

Definition at line 137 of file ioDae.hpp.

Referenced by invertTransparency(), LoadOptions(), and setInvertTransparency().

bool vl::LoadWriterDae::LoadOptions::mFlattenTransformHierarchy`[protected]`

Definition at line 138 of file ioDae.hpp.

Referenced by flattenTransformHierarchy(), LoadOptions(), and setFlattenTransformHierarchy().

bool vl::LoadWriterDae::LoadOptions::mUseAlwaysMipmapping`[protected]`

Definition at line 139 of file ioDae.hpp.

Referenced by LoadOptions(), setUseAlwaysMipmapping(), and useAlwaysMipmapping().

bool vl::LoadWriterDae::LoadOptions::mComputeMissingNormals`[protected]`

Definition at line 140 of file ioDae.hpp.

Referenced by computeMissingNormals(), LoadOptions(), and setComputeMissingNormals().

bool vl::LoadWriterDae::LoadOptions::mFixBadNormals`[protected]`

Definition at line 141 of file ioDae.hpp.

Referenced by fixBadNormals(), LoadOptions(), and setFixBadNormals().

bool vl::LoadWriterDae::LoadOptions::mExtractSkins`[protected]`

Definition at line 142 of file ioDae.hpp.

Referenced by extractSkins(), LoadOptions(), and setExtractSkins().

bool vl::LoadWriterDae::LoadOptions::mMergeDrawCalls`[protected]`

Definition at line 143 of file ioDae.hpp.

Referenced by LoadOptions(), mergeDrawCalls(), and setMergeDrawCalls().

float vl::LoadWriterDae::LoadOptions::mLightMeshSize`[protected]`

Definition at line 144 of file ioDae.hpp.

Referenced by lightMeshSize(), LoadOptions(), and setLightMeshSize().

bool vl::LoadWriterDae::LoadOptions::mExportLights`[protected]`

Definition at line 145 of file ioDae.hpp.

Referenced by exportLights(), LoadOptions(), and setExportLights().

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

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/plugins/COLLADA/ioDae.hpp

Visualization Library v2011.09.1162 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu Jan 26 2012 00:44:42.
Permission is granted to use this page to write and publish articles regarding Visualization Library.