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

StateAttribute File Reference

#include <osg/Export>
#include <osg/Object>
#include <osg/GL>
#include <typeinfo>
#include <vector>

Include dependency graph for StateAttribute:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Namespaces

namespace  osg

Defines

#define OSG_STATEATTRIBUTE   1
#define META_StateAttribute(library, name, type)
 META_StateAttribute macro define the standard clone, isSameKindAs, className and getType methods.

#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
 COMPARE_StateAttribute_Types macro is a helper for implementing the StatateAtribute::compare(..) method.

#define COMPARE_StateAttribute_Parameter(parameter)
 COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(..) method.

#define GL_COLOR_SUM   0x8458

Define Documentation

#define COMPARE_StateAttribute_Parameter parameter   
 

Value:

if (parameter<rhs.parameter) return -1; \
        if (rhs.parameter<parameter) return 1;
COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(..) method.

Macro assumes that variable rhs has been corrected defined by code preceesing macro.

#define COMPARE_StateAttribute_Types TYPE,
rhs_attribute   
 

Value:

if (this==&rhs_attribute) return 0;\
            const std::type_info* type_lhs = &typeid(*this);\
            const std::type_info* type_rhs = &typeid(rhs_attribute);\
            if (type_lhs->before(*type_rhs)) return -1;\
            if (*type_lhs != *type_rhs) return 1;\
            const TYPE& rhs = static_cast<const TYPE&>(rhs_attribute);
COMPARE_StateAttribute_Types macro is a helper for implementing the StatateAtribute::compare(..) method.

#define GL_COLOR_SUM   0x8458
 

#define META_StateAttribute library,
name,
type   
 

Value:

virtual osg::Object* cloneType() const { return osgNew name(); } \
        virtual osg::Object* clone(const osg::CopyOp& copyop) const { return osgNew name (*this,copyop); } \
        virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const name *>(obj)!=NULL; } \
        virtual const char* libraryName() const { return #library; } \
        virtual const char* className() const { return #name; } \
        virtual const Type getType() const { return type; }
META_StateAttribute macro define the standard clone, isSameKindAs, className and getType methods.

Use when subclassing from Object to make it more convinient to define the standard pure virtual methods which are required for all Object subclasses.

#define OSG_STATEATTRIBUTE   1
 


Generated at Wed Sep 18 13:54:59 2002 for the Open Scene Graph by doxygen 1.2.16.