osg::LogicOp Class Reference

Encapsulates OpenGL LogicOp state. More...

Inheritance diagram for osg::LogicOp:

Inheritance graph
[legend]

List of all members.

Public Types

enum  Opcode {
  CLEAR = GL_CLEAR, SET = GL_SET, COPY = GL_COPY, COPY_INVERTED = GL_COPY_INVERTED,
  NOOP = GL_NOOP, INVERT = GL_INVERT, AND = GL_AND, NAND = GL_NAND,
  OR = GL_OR, NOR = GL_NOR, XOR = GL_XOR, EQUIV = GL_EQUIV,
  AND_REVERSE = GL_AND_REVERSE, AND_INVERTED = GL_AND_INVERTED, OR_REVERSE = GL_OR_REVERSE, OR_INVERTED = GL_OR_INVERTED
}

Public Member Functions

 LogicOp ()
 LogicOp (Opcode opcode)
 LogicOp (const LogicOp &trans, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_StateAttribute (osg, LogicOp, LOGICOP)
virtual int compare (const StateAttribute &sa) const
 Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
virtual bool getModeUsage (StateAttribute::ModeUsage &usage) const
 Return the modes associated with this StateAttribute.
void setOpcode (Opcode opcode)
Opcode getOpcode () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.

Protected Member Functions

virtual ~LogicOp ()

Protected Attributes

Opcode _opcode


Detailed Description

Encapsulates OpenGL LogicOp state.


Member Enumeration Documentation

enum osg::LogicOp::Opcode

Enumerator:
CLEAR 
SET 
COPY 
COPY_INVERTED 
NOOP 
INVERT 
AND 
NAND 
OR 
NOR 
XOR 
EQUIV 
AND_REVERSE 
AND_INVERTED 
OR_REVERSE 
OR_INVERTED 


Constructor & Destructor Documentation

osg::LogicOp::LogicOp (  ) 

osg::LogicOp::LogicOp ( Opcode  opcode  ) 

osg::LogicOp::LogicOp ( const LogicOp trans,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
) [inline]

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::LogicOp::~LogicOp (  )  [protected, virtual]


Member Function Documentation

osg::LogicOp::META_StateAttribute ( osg  ,
LogicOp  ,
LOGICOP   
)

virtual int osg::LogicOp::compare ( const StateAttribute sa  )  const [inline, virtual]

Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Implements osg::StateAttribute.

virtual bool osg::LogicOp::getModeUsage ( StateAttribute::ModeUsage  )  const [inline, virtual]

Return the modes associated with this StateAttribute.

Reimplemented from osg::StateAttribute.

void osg::LogicOp::setOpcode ( Opcode  opcode  )  [inline]

Opcode osg::LogicOp::getOpcode (  )  const [inline]

virtual void osg::LogicOp::apply ( State  )  const [virtual]

apply the OpenGL state attributes.

The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.

Reimplemented from osg::StateAttribute.


Member Data Documentation

Opcode osg::LogicOp::_opcode [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:11 2007 for the OpenSceneGraph by doxygen 1.5.3.