Geom Class Reference
Base class for GL-renderable geoms.
More...
#include <Geom.hh>
Inheritance diagram for Geom:
List of all members.
Detailed Description
Base class for GL-renderable geoms.
BaseGeom and Geom are the base classes for all physical geometric objects; BaseGeom encapsulates the mass and collision characteritics, while Geom encapsulated the visual appearance.
Constructor & Destructor Documentation
Geom::Geom |
( |
dSpaceID |
spaceId |
) |
|
|
Geom::~Geom |
( |
|
) |
[virtual] |
|
Member Function Documentation
void Geom::SetColor |
( |
const GzColor & |
color |
) |
|
|
void Geom::SetAmbientColor |
( |
const GzColor & |
color |
) |
|
|
void Geom::SetDiffuseColor |
( |
const GzColor & |
color |
) |
|
|
void Geom::SetSpecularColor |
( |
const GzColor & |
color |
) |
|
|
void Geom::SetEmissionColor |
( |
const GzColor & |
color |
) |
|
|
void Geom::SetShadeModel |
( |
const char * |
mode |
) |
|
|
void Geom::SetPolygonMode |
( |
const char * |
mode |
) |
|
|
void Geom::SetTransparency |
( |
bool |
enable |
) |
|
|
void Geom::SetShininess |
( |
float |
num |
) |
|
|
void Geom::SetLaser |
( |
float |
num |
) |
|
|
void Geom::SetRetro |
( |
float |
num |
) |
|
|
void Geom::SetFiducial |
( |
int |
id |
) |
|
|
void Geom::SetPickId |
( |
GLuint |
id |
) |
|
|
int Geom::SetTexture2D |
( |
int |
width, |
|
|
int |
height, |
|
|
const uint8_t * |
data |
|
) |
|
|
|
Set the 2D texture.
- Parameters:
-
| width,height | Image dimensions (pixels). |
| data | Image data (packed RGB888). |
- Returns:
- Returns 0 on success.
|
int Geom::SetTexture2DFile |
( |
const char * |
filename |
) |
|
|
|
Set the 2D texture from a file.
- Parameters:
-
| filename | Texture file name (NULL for no texture). |
- Returns:
- Returns 0 on success.
|
void Geom::SetTexture2DSize |
( |
GzVector |
size |
) |
|
|
|
Set size of the texture image when mapped on a geom.
- Parameters:
-
| size | Size (x and y, in meters). |
|
int Geom::SetSkinFile |
( |
const char * |
filename |
) |
|
|
|
Set the visual skin.
- Parameters:
-
| filename | 3DS file containing skin |
|
void Geom::SetSkinNull |
( |
bool |
enable |
) |
[inline] |
|
|
Set the visual skin to null.
This method is useful for suppressing rendering of a geom when skins are available, such as when this geom is part of a model in which the principle skin is attached to a different geom. |
void Geom::SetSkinPose |
( |
GzPose |
pose |
) |
|
|
|
Set the skin pose.
- Parameters:
-
| pose | Skin pose relative to geom |
|
void Geom::SetSkinScale |
( |
GzVector |
scale |
) |
|
|
|
Set the skin scale.
- Parameters:
-
|
bool Geom::HasSkin |
( |
|
) |
[inline] |
|
bool Geom::HasSkinNull |
( |
|
) |
[inline] |
|
GzColor Geom::GetAmbientColor |
( |
|
) |
const |
|
GzColor Geom::GetDiffuseColor |
( |
|
) |
const |
|
GzColor Geom::GetSpecularColor |
( |
|
) |
const |
|
float Geom::GetTransparency |
( |
|
) |
const |
|
float Geom::GetShininess |
( |
|
) |
const |
|
float Geom::GetLaser |
( |
|
) |
const |
|
float Geom::GetRetro |
( |
|
) |
const |
|
int Geom::GetFiducial |
( |
|
) |
const |
|
GLuint Geom::GetPickId |
( |
|
) |
const |
|
void Geom::SetList |
( |
int |
camera, |
|
|
GLuint |
listId, |
|
|
RenderOptions |
opt |
|
) |
[protected] |
|
|
Set stored list options for a particular camera.
|
void Geom::GetList |
( |
int |
camera, |
|
|
GLuint * |
listId, |
|
|
RenderOptions * |
opt |
|
) |
[protected] |
|
|
Get stored list options for a particular camera.
|
|
Reimplemented in BoxGeom, CylinderGeom, DomeGeom, FrustrumGeom, PlaneGeom, PrismGeom, RayGeom, RoadGeom, SphereGeom, TerrainGeom, and WheelGeom. |
|
Render the skin (should be called at rendering stage).
|
Member Data Documentation
|
Texture image (for 2D textures).
|
|
Texture scale (image will map onto a road patch with the given dimensions).
|
|
Rengerate display list (true/false).
|
The documentation for this class was generated from the following files:
Last updated 12 September 2005 21:38:45
|