Main Page   Class Hierarchy   Compound List   File List   Compound Members  

cganim::AnimObject Class Reference

Base class for all geometry objects in animated scene. Contains common attributes. More...

#include <animobject.h>

Inheritance diagram for cganim::AnimObject:

cganim::Rectangle cganim::Sphere List of all members.

Public Member Functions

 AnimObject ()
 Default constuctor. Default mass is 1kg, speed 0m/s.

gml::Vector3d GetVelocity () const
 Get object velocity (m/sec).

void SetVelocity (const gml::Vector3d &new_velocity)
 Set new object velocity (m/sec).

double GetMass () const
 Return object mass (kg).

void SetMass (double new_mass)
 Set new object mass (kg).

gml::Vector3d GetColor () const
 Return object color.

void SetColor (const gml::Vector3d &new_color)
 Modify object color.

std::string GetTexture () const
 Return object texture file path. Can be empty.

void SetTexture (const std::string &texture)
 Modify texture path of the object.

double GetSpecularLevel () const
 Return level of specularity for this object, 0 - non-specular, 1 - ideal mirror.

void SetSpecularLevel (double ks)
 Modify level of specularity for this object, 0 - non-specular, 1 - ideal mirror.

void SetMatte (double matte)
 Set new transparency coefficient (0 - fully transparent, 1 - opaque).

double GetMatte () const
 Get transp coefficient (0 - fully transparent, 1 - opaque).


Detailed Description

Base class for all geometry objects in animated scene. Contains common attributes.


The documentation for this class was generated from the following file:
Generated on Wed May 5 13:20:39 2004 for AnimDatalibrary by doxygen1.3