version 3.3

VRS::PolygonSetBuilder Class Reference

#include <vrs/polygonsetbuilder.h>

List of all members.

Static Public Member Functions

static MeshcreateMesh (VertexAttributeGenerator *, const VertexAttributeMap *)
static MeshcreateTransformedMesh (VertexAttributeGenerator *, const VertexAttributeMap *)
static MeshcreateMesh (Engine *, VertexAttributeGenerator *)
 Same as above, but using an engine to determine the VertexAttributeMap-attribute.
static PolygonSetcreate (const Box *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a box-like PolygonSet.
static Meshcreate (const Cone *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a cone-like PolygonSet.
static Meshcreate (const Cylinder *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a cylinder-like PolygonSet. See create(const Cone*, ...).
static Meshcreate (const Disc *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a disc-like PolygonSet. See create(const Cone*, ...).
static Meshcreate (const Hyperboloid *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a hyperboloid-like PolygonSet. See create(const Cone*, ...).
static Meshcreate (const Knot *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a knot-like PolygonSet. See create(const Cone*, ...).
static Meshcreate (const Paraboloid *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a paraboloid-like PolygonSet. See create(const Cone*, ...).
static Meshcreate (const Sphere *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a sphere-like PolygonSet. See create(const Cone*, ...).
static Meshcreate (const SuperQuad *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a superquad-like PolygonSet. See create(const Cone*, ...).
static Meshcreate (const Torus *, unsigned int nx=16, unsigned int ny=16, const VertexAttributeMap *=0)
 Creates a torus-like PolygonSet. See create(const Cone*, ...).


Member Function Documentation

static Mesh* VRS::PolygonSetBuilder::createMesh ( VertexAttributeGenerator ,
const VertexAttributeMap  
) [static]

Given a VertexAttributeGenerator, generates vertex data as indicated by the VertexAttributeMap-attribute and creates a mesh using this information.

static Mesh* VRS::PolygonSetBuilder::createTransformedMesh ( VertexAttributeGenerator ,
const VertexAttributeMap  
) [static]

Given a VertexAttributeGenerator, generates vertex data as indicated by the VertexAttributeMap-attribute and creates a mesh using this information. Also transforms the mesh by the transformation given by the generator.

static Mesh* VRS::PolygonSetBuilder::createMesh ( Engine ,
VertexAttributeGenerator  
) [static]

Same as above, but using an engine to determine the VertexAttributeMap-attribute.

static PolygonSet* VRS::PolygonSetBuilder::create ( const Box ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a box-like PolygonSet.

Creates a PolygonSet with form of a box. The six sides each have a resolution of nx*ny, and vertex attributes indicated by the vertex attribute map parameter. If the latter is 0, standard vertex attributes will be created

static Mesh* VRS::PolygonSetBuilder::create ( const Cone ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a cone-like PolygonSet.

Creates a PolygonSet with form of a cone, a resolution of nx*ny, and vertex attributes indicated by the vertex attribute map parameter. If the latter is 0, standard vertex attributes will be created

static Mesh* VRS::PolygonSetBuilder::create ( const Cylinder ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a cylinder-like PolygonSet. See create(const Cone*, ...).

static Mesh* VRS::PolygonSetBuilder::create ( const Disc ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a disc-like PolygonSet. See create(const Cone*, ...).

static Mesh* VRS::PolygonSetBuilder::create ( const Hyperboloid ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a hyperboloid-like PolygonSet. See create(const Cone*, ...).

static Mesh* VRS::PolygonSetBuilder::create ( const Knot ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a knot-like PolygonSet. See create(const Cone*, ...).

static Mesh* VRS::PolygonSetBuilder::create ( const Paraboloid ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a paraboloid-like PolygonSet. See create(const Cone*, ...).

static Mesh* VRS::PolygonSetBuilder::create ( const Sphere ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a sphere-like PolygonSet. See create(const Cone*, ...).

static Mesh* VRS::PolygonSetBuilder::create ( const SuperQuad ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a superquad-like PolygonSet. See create(const Cone*, ...).

static Mesh* VRS::PolygonSetBuilder::create ( const Torus ,
unsigned int  nx = 16,
unsigned int  ny = 16,
const VertexAttributeMap = 0 
) [static]

Creates a torus-like PolygonSet. See create(const Cone*, ...).


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

Generated on Fri May 24 06:00:28 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact