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>
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] |
- 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