Solar::Model Class Reference

Visual (solid) model. More...

#include <Model.hpp>

Inheritance diagram for Solar::Model:

Inheritance graph
[legend]
Collaboration diagram for Solar::Model:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Protected Attributes


Detailed Description

Visual (solid) model.

A model is composed of several sub-objects. These sub-objects are derived from Solar::Graphic class. The sub-objects are of the kind that can be easily rendered on any simple, but sane graphics system (triangle strips, triangle arrays etc).

Author:
Tommi Ilmonen


Constructor & Destructor Documentation

Solar::Model::Model  ) 
 

Solar::Model::~Model  ) 
 


Member Function Documentation

void Solar::Model::setGarbageBin GarbageBin bin  )  [virtual]
 

Reimplemented from Solar::Garbage.

void Solar::Model::render Renderer  ) 
 

void Solar::Model::scale const Fluid::Vector3  ) 
 

void Solar::Model::scale float  s  )  [inline]
 

void Solar::Model::move const Fluid::Vector3  ) 
 

void Solar::Model::transform const Fluid::Matrix3 &   ) 
 

void Solar::Model::addGraphic Graphic  ) 
 

void Solar::Model::clear  ) 
 

void Solar::Model::merge Model m  ) 
 

Merges the graphic elements from another model.

Note: The source model becomes empty.

uint Solar::Model::subObjectCount  )  const [inline]
 

Returns the number of sub-objects.

Graphic* Solar::Model::getSubObject uint  i  )  [inline]
 

Gets one of the sub-objects.

void Solar::Model::calculateBoundingBox  ) 
 

const BoundingBox& Solar::Model::boundingBox  )  const [inline]
 

void Solar::Model::normalize float  maximumSpan,
bool  center
 

void Solar::Model::centralize  ) 
 

int Solar::Model::nofPrimitives  )  const
 

void Solar::Model::createPyramid float  size,
const std::string &  baseMaterial,
bool  shareMaterials = false
 

Pyramid creator.

void Solar::Model::createCube float  size,
const std::string &  baseMaterial,
bool  shareMaterials = false
 

Constructs a cude model.

void Solar::Model::createFromHeightMap const unsigned char *  map,
unsigned  w,
unsigned  h,
const char *  material = "ground"
 

Creates a model from height map data.

Each row in the map is turned into a triangle strip. This should be efficient enough.


Member Data Documentation

std::vector<Graphic *> Solar::Model::m_graphics [protected]
 

BoundingBox Solar::Model::m_boundingBox [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 12 21:09:48 2007 for VEE - The Visual Effects Engine by  doxygen 1.4.6