CamSim  0.0.0
A rasterization-based simulator for various types of cameras
Static Public Member Functions | List of all members
CamSim::Generator Class Reference

Generates basic objects to populate a scene. More...

Static Public Member Functions

static void addObjectToScene (Scene &scene, int materialIndex, int vertexCount, const float *positions, const float *normals, const float *texCoords, int indexCount, const unsigned int *indices, const Transformation &transformation=Transformation(), const Animation &animation=Animation())
 Adds geometry as an object to a scene. More...
 
static void addObjectToScene (Scene &scene, int materialIndex, const QVector< float > &positions, const QVector< float > &normals, const QVector< float > &texCoords, const QVector< unsigned int > &indices, const Transformation &transformation=Transformation(), const Animation &animation=Animation())
 Adds a geometry as an object to a scene. Convenient alternative to the above function; it does the same. More...
 
static void addQuadToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40)
 Adds a quad object to a scene. The initial quad has the corners (-1, -1, 0), (+1, -1, 0), (+1, +1, 0), (-1, +1, 0). The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 
static void addCubeToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40)
 Adds a cube object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 
static void addDiskToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), float innerRadius=0.2f, int slices=40)
 Adds a disk object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 
static void addSphereToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40, int stacks=20)
 Adds a sphere object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 
static void addCylinderToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40)
 Adds a cylinder object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 
static void addConeToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40, int stacks=20)
 Adds a cone object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 
static void addTorusToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), float innerRadius=0.4f, int sides=40, int rings=40)
 Adds a torus object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 
static void addArmadilloToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation())
 Adds an Stanford Armadillo object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates. More...
 
static void addBuddhaToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation())
 Adds a Stanford Happy Buddha object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates. More...
 
static void addBunnyToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation())
 Adds a Stanford Bunny object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 
static void addDragonToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation())
 Adds a Stanford Dragon object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates. More...
 
static void addTeapotToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation())
 Adds a teapot object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
 

Detailed Description

Generates basic objects to populate a scene.

Member Function Documentation

◆ addArmadilloToScene()

static void CamSim::Generator::addArmadilloToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation() 
)
static

Adds an Stanford Armadillo object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates.

◆ addBuddhaToScene()

static void CamSim::Generator::addBuddhaToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation() 
)
static

Adds a Stanford Happy Buddha object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates.

◆ addBunnyToScene()

static void CamSim::Generator::addBunnyToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation() 
)
static

Adds a Stanford Bunny object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.

◆ addConeToScene()

static void CamSim::Generator::addConeToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation(),
int  slices = 40,
int  stacks = 20 
)
static

Adds a cone object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.

◆ addCubeToScene()

static void CamSim::Generator::addCubeToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation(),
int  slices = 40 
)
static

Adds a cube object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.

◆ addCylinderToScene()

static void CamSim::Generator::addCylinderToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation(),
int  slices = 40 
)
static

Adds a cylinder object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.

◆ addDiskToScene()

static void CamSim::Generator::addDiskToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation(),
float  innerRadius = 0.2f,
int  slices = 40 
)
static

Adds a disk object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.

◆ addDragonToScene()

static void CamSim::Generator::addDragonToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation() 
)
static

Adds a Stanford Dragon object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates.

◆ addObjectToScene() [1/2]

static void CamSim::Generator::addObjectToScene ( Scene scene,
int  materialIndex,
const QVector< float > &  positions,
const QVector< float > &  normals,
const QVector< float > &  texCoords,
const QVector< unsigned int > &  indices,
const Transformation transformation = Transformation(),
const Animation animation = Animation() 
)
static

Adds a geometry as an object to a scene. Convenient alternative to the above function; it does the same.

◆ addObjectToScene() [2/2]

static void CamSim::Generator::addObjectToScene ( Scene scene,
int  materialIndex,
int  vertexCount,
const float *  positions,
const float *  normals,
const float *  texCoords,
int  indexCount,
const unsigned int *  indices,
const Transformation transformation = Transformation(),
const Animation animation = Animation() 
)
static

Adds geometry as an object to a scene.

◆ addQuadToScene()

static void CamSim::Generator::addQuadToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation(),
int  slices = 40 
)
static

Adds a quad object to a scene. The initial quad has the corners (-1, -1, 0), (+1, -1, 0), (+1, +1, 0), (-1, +1, 0). The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.

◆ addSphereToScene()

static void CamSim::Generator::addSphereToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation(),
int  slices = 40,
int  stacks = 20 
)
static

Adds a sphere object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.

◆ addTeapotToScene()

static void CamSim::Generator::addTeapotToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation() 
)
static

Adds a teapot object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.

◆ addTorusToScene()

static void CamSim::Generator::addTorusToScene ( Scene scene,
int  materialIndex,
const Transformation transformation,
const Animation animation = Animation(),
float  innerRadius = 0.4f,
int  sides = 40,
int  rings = 40 
)
static

Adds a torus object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene.


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