Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

vl::A3DSLoader Class Reference

The A3DSLoader class loads an Autodesk 3DS file and generates a vector of A3DSObject and A3DSMaterial objects. More...

#include <io3DS.hpp>

List of all members.

Public Member Functions

 A3DSLoader ()
bool parse3DS (VirtualFile *file)

Public Attributes

std::vector< A3DSObjectmObjects
std::vector< A3DSMaterialmMaterials

Protected Member Functions

fvec3 readVec3 ()
fvec3 readColByte3 ()
fvec3 readColFloat3 ()
String readLine ()
float readWordPercent ()
float readFloatPercent ()
void readChunk ()
bool skipChunk ()
void read_3D_EDITOR_CHUNK ()
fvec3 readColChunk ()
float readPercentChunk ()
void read_MATERIAL_BLOCK ()
A3DSTexture readMapChunk ()
void read_OBJECT_BLOCK ()
void read_TRIANGULAR_MESH ()

Protected Attributes

VirtualFilemInputFile
unsigned short mChunkId
unsigned int mChunkLen
bool mCorrupted

Detailed Description

The A3DSLoader class loads an Autodesk 3DS file and generates a vector of A3DSObject and A3DSMaterial objects.

Definition at line 202 of file io3DS.hpp.


Constructor & Destructor Documentation

A3DSLoader::A3DSLoader ( )

Definition at line 105 of file io3DS.cpp.


Member Function Documentation

bool A3DSLoader::parse3DS ( VirtualFile file)
fvec3 A3DSLoader::readVec3 ( ) [protected]
fvec3 A3DSLoader::readColByte3 ( ) [protected]
fvec3 A3DSLoader::readColFloat3 ( ) [protected]
String A3DSLoader::readLine ( ) [protected]
float A3DSLoader::readWordPercent ( ) [protected]

Definition at line 148 of file io3DS.cpp.

References mInputFile, and vl::VirtualFile::readUInt16().

Referenced by readPercentChunk().

float A3DSLoader::readFloatPercent ( ) [protected]

Definition at line 153 of file io3DS.cpp.

References mInputFile, and vl::VirtualFile::readFloat().

Referenced by readPercentChunk().

void A3DSLoader::readChunk ( ) [protected]
bool A3DSLoader::skipChunk ( ) [protected]
void A3DSLoader::read_3D_EDITOR_CHUNK ( ) [protected]
fvec3 A3DSLoader::readColChunk ( ) [protected]
float A3DSLoader::readPercentChunk ( ) [protected]
void A3DSLoader::read_MATERIAL_BLOCK ( ) [protected]
A3DSTexture A3DSLoader::readMapChunk ( ) [protected]
void A3DSLoader::read_OBJECT_BLOCK ( ) [protected]
void A3DSLoader::read_TRIANGULAR_MESH ( ) [protected]

Member Data Documentation

unsigned short vl::A3DSLoader::mChunkId [protected]
unsigned int vl::A3DSLoader::mChunkLen [protected]
bool vl::A3DSLoader::mCorrupted [protected]

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

Visualization Library 2011.09.1160 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 2 2013 13:41:32.
Permission is granted to use this page to write and publish articles regarding Visualization Library.