Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

A3DL::Snow Class Reference

#include <snow.hh>

Inheritance diagram for A3DL::Snow:

A3DL::Object3D MetaObject List of all members.

Public Member Functions

Access Subobjects

Static Public Member Functions

Protected Attributes


Constructor & Destructor Documentation

Snow::Snow (  MetaObject *  superobject  ) 
 

Constructor.

Definition at line 35 of file snow.cc.

Referenced by new_Snow().

Snow::~Snow (   )  [virtual]
 

Destructor.

Definition at line 41 of file snow.cc.


Member Function Documentation

double Snow::getFallingSpeed (   )  [virtual]
 

Get the value of a3dl:falling-speed property.

This is the general rate of falling of snow from direction given in orientation, units/sec. Actual speed vary to create more snowlike effect.

Definition at line 133 of file snow.cc.

Property * Snow::getFallingSpeedObject (   )  [virtual]
 

Get the a3dl:falling-speed object.

Definition at line 151 of file snow.cc.

int Snow::getParticleDensity (   )  [virtual]
 

Get the value of a3dl:particle-density property (Number of "snowflakes" per square unit of space.

Definition at line 69 of file snow.cc.

Property * Snow::getParticleDensityObject (   )  [virtual]
 

Get the a3dl:particle-density object.

Definition at line 87 of file snow.cc.

void Snow::getParticleSize (  double &  x,
double &  y
)  [virtual]
 

Get the values in the a3dl:particle-size property.

Parameters:
x replaced with the width of each "snowflake"
y replaced with the height of each "snowflake"

Definition at line 102 of file snow.cc.

Property * Snow::getParticleSizeObject (   )  [virtual]
 

Get the a3dl:particle-size object.

Definition at line 118 of file snow.cc.

PropertyAccessControl * Snow::getPropertyAccessControl (   )  [virtual]
 

Get default access control policy.

Reimplemented from A3DL::Object3D.

Definition at line 49 of file snow.cc.

double Snow::getSwirliness (   )  [virtual]
 

Get the value of a3dl:swirliness property.

This value represents the probability that "snowflakes" will change direction as they fall. It will range from 0 to 1.

Definition at line 166 of file snow.cc.

Property * Snow::getSwirlinessObject (   )  [virtual]
 

Get the a3dl:swirliness object.

Definition at line 184 of file snow.cc.

const string Snow::getType (   )  [virtual]
 

Return type string ("a3dl:object3D.MATERIALINFO.object3D.snow").

Reimplemented from A3DL::Object3D.

Definition at line 55 of file snow.cc.

MetaObject * Snow::new_Snow (  MetaObject *  s,
const string &  t
)  [static]
 

Definition at line 202 of file snow.cc.

void Snow::registerExtenders (   )  [static]
 

Register Extenders.

Reimplemented from A3DL::Object3D.

Definition at line 60 of file snow.cc.

void Snow::setFallingSpeed (  double  value,
PropertyAccessControl *  ac = NULL
)  [virtual]
 

Set a3dl:falling-speed property.

Parameters:
value The new value
ac Property access control policy. If omitted, then &NoAccessControl::static_ will be used.

Definition at line 143 of file snow.cc.

void Snow::setFallingSpeedObject (  Property *  newobj  )  [virtual]
 

Set the a3dl:falling-speed object.

Parameters:
newobj The new subobject.

Definition at line 157 of file snow.cc.

void Snow::setParticleDensity (  int  value,
PropertyAccessControl *  ac = NULL
)  [virtual]
 

Set a3dl:particle-density property.

Parameters:
value The new value
ac Property access control policy. If omitted, then &NoAccessControl::static_ will be used.

Definition at line 79 of file snow.cc.

void Snow::setParticleDensityObject (  Property *  newobj  )  [virtual]
 

Set the a3dl:particle-density object.

Parameters:
newobj The new subobject.

Definition at line 93 of file snow.cc.

void Snow::setParticleSize (  double  x,
double  y,
PropertyAccessControl *  ac = NULL
)  [virtual]
 

Set a3dl:particle-size property.

Parameters:
x The new width.
y The new height.
ac Property access control policy. If omitted, then &NoAccessControl::static_ will be used.

Definition at line 110 of file snow.cc.

void Snow::setParticleSizeObject (  Property *  newobj  )  [virtual]
 

Set the a3dl:particle-size object.

Parameters:
newobj The new subobject.

Definition at line 124 of file snow.cc.

void Snow::setPropertyAccessControl (  PropertyAccessControl *  ac  )  [virtual]
 

Set default access control policy.

Reimplemented from A3DL::Object3D.

Definition at line 45 of file snow.cc.

void Snow::setSwirliness (  double  value,
PropertyAccessControl *  ac = NULL
)  [virtual]
 

Set a3dl:swirliness property.

Parameters:
value The new value. Should be between 0 and 1; values outside this range will be adjusted to either 0 or 1.
ac Property access control policy. If omitted, then &NoAccessControl::static_ will be used.

Definition at line 176 of file snow.cc.

void Snow::setSwirlinessObject (  Property *  newobj  )  [virtual]
 

Set the a3dl:swirliness object.

Parameters:
newobj The new subobject.

Definition at line 190 of file snow.cc.


Member Data Documentation

PropertyAccessControl* A3DL::Snow::accessControl [protected]
 

Definition at line 60 of file snow.hh.

Referenced by getPropertyAccessControl(), setFallingSpeed(), setParticleDensity(), setParticleSize(), setPropertyAccessControl(), setSwirliness(), and Snow().


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 03:56:01 2003 for Interreality Project - VOS by doxygen 1.3.2