Public Member Functions

GenBoxObject Class Reference

This reference page is linked to from the following overview topics: Ring Array Creation Process.


Search for all occurrences

Detailed Description

See also:
Class SimpleObject.

Description:
This class provides a method that is used to set the parameters of a box object. This allows the object to be created programmatically. All methods of this class are implemented by the system.

#include <simpobj.h>

Inheritance diagram for GenBoxObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void  SetParams (float width, float height, float length, int wsegs=1, int lsegs=1, int hsegs=1, BOOL genUV=TRUE)=0

Member Function Documentation

virtual void SetParams ( float  width,
float  height,
float  length,
int  wsegs = 1,
int  lsegs = 1,
int  hsegs = 1,
BOOL  genUV = TRUE 
) [pure virtual]
Remarks:
This method is used to set the parameter of the box object.
Parameters:
float width

The width of the box.

float height

The height of the box.

float length

The length of the box.

int wsegs=1

The number of width segments.

int lsegs=1

The number of length segments.

int hsegs=1

The number of height segments.

BOOL genUV=TRUE

Generate UV coordinates flag.
Sample Code:
The following code demonstrates the creation of the box object and the setting of its parameters:

GenBoxObject *gb = (GenBoxObject *)CreateInstance(GEOMOBJECT_CLASS_ID, BOXOBJ_CLASS_ID);

gb->SetParams(10.0f, 10.0f, 10.0f, 1, 1, 1, TRUE);

GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject
GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject GenBoxObject