version 3.3

VRS::CoordTransformer Class Reference

#include <vrs/coordtransformer.h>

Inheritance diagram for VRS::CoordTransformer:

VRS::Handler VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::DistantLightCoordTransformer VRS::PointLightCoordTransformer

List of all members.

Public Types

enum  Space { ObjectSpace = 0, WorldSpace = 1, CameraSpace = 2 }

Public Member Functions

virtual ID target () const
 Target of the handler is Attribute.
virtual ID service () const
 The service name of this handler is CoordTransformer.
 VRS_SERIALIZABLE_CLASS_ENUM (Space)
virtual AttributetoCoordSystem (Space, const Attribute *, Engine *)
 VRS_TYPEINFO (CoordTransformer, Handler)

Protected Member Functions

virtual void checkArgs (Space, const Attribute *, Engine *) const


Detailed Description

Handler to transform coordinates of an attribute into a different coordinate system. Usually it will be used to transform the coordinates of an attribute into the object space coordinates of a shape to determine where the attribute is located relative to the shape. See the shadow algorithm for an example. Note that one has to derive from this class and create a transformer specialized for an attribute in order to make the transformer actually do something.

Member Enumeration Documentation

Enumerator:
ObjectSpace 
WorldSpace 
CameraSpace 


Member Function Documentation

virtual ID VRS::CoordTransformer::target (  )  const [virtual]

Target of the handler is Attribute.

Implements VRS::Handler.

Reimplemented in VRS::DistantLightCoordTransformer, and VRS::PointLightCoordTransformer.

virtual ID VRS::CoordTransformer::service (  )  const [virtual]

The service name of this handler is CoordTransformer.

Reimplemented from VRS::Handler.

VRS::CoordTransformer::VRS_SERIALIZABLE_CLASS_ENUM ( Space   ) 

virtual Attribute* VRS::CoordTransformer::toCoordSystem ( Space  ,
const Attribute ,
Engine  
) [virtual]

Returns a new attribute, which is a copy of the given attribute, but converted into an alternate coordinate system (in fact, this transformer does nothing but copying the attribute).

Reimplemented in VRS::DistantLightCoordTransformer, and VRS::PointLightCoordTransformer.

VRS::CoordTransformer::VRS_TYPEINFO ( CoordTransformer  ,
Handler   
)

virtual void VRS::CoordTransformer::checkArgs ( Space  ,
const Attribute ,
Engine  
) const [protected, virtual]


The documentation for this class was generated from the following file:

Generated on Mon May 21 06:00:17 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact