3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
AnaglyphEffect Class Reference

#include <effect.h>

Inheritance diagram for AnaglyphEffect:
Inheritance graph
[legend]
Collaboration diagram for AnaglyphEffect:
Collaboration graph
[legend]

Public Member Functions

 AnaglyphEffect ()
 
 ~AnaglyphEffect ()
 
Effectclone () const
 
void enable (unsigned int pass) const
 Enable the clipping plane. Values must be set before calling. More...
 
void disable () const
 DIsable the clipping plane. More...
 
bool writeState (std::ofstream &f, unsigned int format, unsigned int depth) const
 
bool readState (xmlNodePtr n)
 
void setFlip (bool shouldFlip)
 Whether we should be flipping the lens from its hard-coded left-right. More...
 
void setMode (unsigned int mode)
 
void setBaseShift (float shift)
 
bool needCamUpdate () const
 
bool willDoSomething () const
 Returns true if the effect has any influence on the output. More...
 
virtual unsigned int numPassesNeeded () const
 
float getBaseShift () const
 
unsigned int getMode () const
 
- Public Member Functions inherited from Effect
 Effect ()
 
virtual ~Effect ()
 
std::string getName () const
 
virtual unsigned int getType () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Effect
static void setCurCam (Camera *c)
 
static void setBoundingCube (const BoundCube &c)
 
- Protected Attributes inherited from Effect
unsigned int effectType
 
- Static Protected Attributes inherited from Effect
static CameracurCam =0
 
static BoundCube bc
 

Constructor & Destructor Documentation

◆ AnaglyphEffect()

AnaglyphEffect::AnaglyphEffect ( )

References EFFECT_ANAGLYPH, and Effect::effectType.

Referenced by clone().

Here is the caller graph for this function:

◆ ~AnaglyphEffect()

AnaglyphEffect::~AnaglyphEffect ( )
inline

Member Function Documentation

◆ clone()

Effect * AnaglyphEffect::clone ( ) const
virtual

Implements Effect.

References AnaglyphEffect().

◆ disable()

void AnaglyphEffect::disable ( ) const
virtual

DIsable the clipping plane.

Implements Effect.

References ASSERT, and Effect::curCam.

◆ enable()

void AnaglyphEffect::enable ( unsigned int  pass) const
virtual

Enable the clipping plane. Values must be set before calling.

Implements Effect.

References ANAGLYPH_REDBLUE, ASSERT, CAM_LOOKAT, Camera::clone(), Effect::curCam, Camera::translate(), and Camera::type().

◆ getBaseShift()

float AnaglyphEffect::getBaseShift ( ) const
inline

Referenced by MainWindowFrame::OnUpdateTimer().

Here is the caller graph for this function:

◆ getMode()

unsigned int AnaglyphEffect::getMode ( ) const
inline

References makeEffect().

Referenced by MainWindowFrame::OnUpdateTimer().

Here is the caller graph for this function:

◆ needCamUpdate()

bool AnaglyphEffect::needCamUpdate ( ) const
inlinevirtual

Reimplemented from Effect.

◆ numPassesNeeded()

virtual unsigned int AnaglyphEffect::numPassesNeeded ( ) const
inlinevirtual

Reimplemented from Effect.

◆ readState()

bool AnaglyphEffect::readState ( xmlNodePtr  n)
virtual

Implements Effect.

References ANAGLYPH_HALF_COLOUR, and XMLGetNextElemAttrib().

◆ setBaseShift()

void AnaglyphEffect::setBaseShift ( float  shift)
inline

Referenced by MainWindowFrame::OnUpdateTimer().

Here is the caller graph for this function:

◆ setFlip()

void AnaglyphEffect::setFlip ( bool  shouldFlip)
inline

Whether we should be flipping the lens from its hard-coded left-right.

Referenced by MainWindowFrame::OnUpdateTimer().

Here is the caller graph for this function:

◆ setMode()

void AnaglyphEffect::setMode ( unsigned int  mode)

References ANAGLYPH_ENUM_END, and ASSERT.

Referenced by MainWindowFrame::OnUpdateTimer().

Here is the caller graph for this function:

◆ willDoSomething()

bool AnaglyphEffect::willDoSomething ( ) const
inlinevirtual

Returns true if the effect has any influence on the output.

Implements Effect.

◆ writeState()

bool AnaglyphEffect::writeState ( std::ofstream &  f,
unsigned int  format,
unsigned int  depth 
) const
virtual

Implements Effect.

References ASSERT, STATE_FORMAT_XML, and tabs().


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