version 3.3

VRS::PolyAttribute Class Reference

#include <vrs/polyattribute.h>

Inheritance diagram for VRS::PolyAttribute:

VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable EnvironmentRenderer::WaterReflected VRS::ClipPlane VRS::CullingAttribute VRS::Light VRS::Mirrored VRS::SceneSpy VRS::ShadowCaster VRS::Shadowed VRS::SOUND::SoundStreamAL VRS::SOUND::SourceAL

List of all members.

Public Member Functions

 PolyAttribute (bool enabled=true)
 Per default all poly attributes are enabled.
bool operator== (const PolyAttribute &other) const
void setGlobal (bool global)
 specifies whether the poly attribute is applied globally or locally
bool isGlobal () const
 queries whether the poly attribute is applied globally or not
 VRS_TYPEINFO (PolyAttribute, Attribute)
 VRS_SERIALIZABLE (PolyAttribute)


Detailed Description

Abstract Base Class for poly attributes. One or more poly attribute objects of the same category can be contained and activated at the same time by a rendering engine. Thus, poly attribute objects represent sets of attributes. For example, light sources are poly attributes.

poly attributes in a rendering engine can also be temporarily disabled or enabled using Switch objects.


Constructor & Destructor Documentation

VRS::PolyAttribute::PolyAttribute ( bool  enabled = true  ) 

Per default all poly attributes are enabled.


Member Function Documentation

bool VRS::PolyAttribute::operator== ( const PolyAttribute other  )  const

void VRS::PolyAttribute::setGlobal ( bool  global  ) 

specifies whether the poly attribute is applied globally or locally

Global attributes are applied at the beginning of each maintraversal and unapplied after each maintraversal. For the user, they appear to be active for the whole scene graph. Other poly attributes are applied and unapplied locally in main rendering passes. For global polyattributes, the engine remembers the modelview-transformation in the pretraversal. This requires that any instance of a global attribute must be present only once in the scene graph.

Most poly attributes are local, but some default to global.

bool VRS::PolyAttribute::isGlobal (  )  const

queries whether the poly attribute is applied globally or not

VRS::PolyAttribute::VRS_TYPEINFO ( PolyAttribute  ,
Attribute   
)

VRS::PolyAttribute::VRS_SERIALIZABLE ( PolyAttribute   ) 


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

Generated on Wed May 22 06:00:28 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact