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

Teddy::MixIn::Options Class Reference

Options object mix in. More...

#include <Options.h>

Inheritance diagram for Teddy::MixIn::Options:

Inheritance graph
[legend]
List of all members.

Public Methods

 Options ()
 Options constructor. More...

 Options (const unsigned long options)
 Options constructor. More...

virtual ~Options ()
void setOptions (const unsigned long options)
 Set flags. More...

unsigned long getOptions () const
 Get render options flags. More...

unsigned long operator & (const Options &other)
unsigned long operator| (const Options &other)
Options & operator &= (const Options &other)
Options & operator|= (const Options &other)
Options & operator^= (const Options &other)
void enable (const unsigned long options)
 Enable Flags. More...

void disable (const unsigned long options)
 Disable flags. More...

void toggle (const unsigned long options)
 Toggle options. More...

bool isEnabled (const unsigned long options)
 Return true if all selected options are enabled. More...

const char * isEnabledStr (const unsigned long options)
bool isDisabled (const unsigned long options)
 Return true if all selected options are disabled. More...


Protected Attributes

unsigned long options

Detailed Description

Options object mix in.

Definition at line 34 of file Options.h.


Constructor & Destructor Documentation

Teddy::MixIn::Options::Options  
 

Options constructor.

Definition at line 33 of file Options.cpp.

References options.

Teddy::MixIn::Options::Options const unsigned long    options
 

Options constructor.

Definition at line 39 of file Options.cpp.

References options.

Teddy::MixIn::Options::~Options   [virtual]
 

Definition at line 44 of file Options.cpp.


Member Function Documentation

void Teddy::MixIn::Options::disable const unsigned long    options
 

Disable flags.

Definition at line 67 of file Options.cpp.

References options.

Referenced by Teddy::Behaviour::Control::clear, Teddy::Behaviour::Control::less, Teddy::Behaviour::Control::more, Teddy::Models::Vertex::normNormal, Teddy::PhysicalComponents::Projection::pickState, Teddy::Models::Vertex::setColor, Teddy::Models::Vertex::setNormal, Teddy::Models::Vertex::setTexture, Teddy::Models::Vertex::setVertex, Teddy::Models::Face::smooth, and Teddy::Behaviour::Control::stop.

void Teddy::MixIn::Options::enable const unsigned long    options
 

Enable Flags.

Definition at line 61 of file Options.cpp.

References options.

Referenced by Teddy::Behaviour::Control::less, Teddy::Models::TriangleStrip::makeNormal, Teddy::Models::TriangleFan::makeNormal, Teddy::Models::QuadStrip::makeNormal, Teddy::Models::Element::makeNormal, Teddy::PhysicalComponents::Projection::materialReapplyActive, Teddy::Behaviour::Control::more, Teddy::Models::Vertex::normNormal, Teddy::PhysicalComponents::Projection::pickState, Teddy::Models::Vertex::setColor, Teddy::Models::Vertex::setNormal, Teddy::Models::Element::setNormal, Teddy::Models::Vertex::setTexture, Teddy::Materials::Material::setTexture, Teddy::Imports::LWSurface::setTexture, Teddy::Models::Vertex::setVertex, Teddy::Models::Face::smooth, and Teddy::Behaviour::Control::stop.

unsigned long Teddy::MixIn::Options::getOptions   const
 

Get render options flags.

Definition at line 55 of file Options.cpp.

References options.

bool Teddy::MixIn::Options::isDisabled const unsigned long    options
 

Return true if all selected options are disabled.

Definition at line 126 of file Options.cpp.

References options.

Referenced by Teddy::Behaviour::Control::dampen, Teddy::Models::Vertex::normNormal, Teddy::Models::Face::smooth, Teddy::Behaviour::Control::stop, Teddy::Behaviour::Control::tick, and Teddy::Graphics::View::View.

bool Teddy::MixIn::Options::isEnabled const unsigned long    options
 

Return true if all selected options are enabled.

Definition at line 107 of file Options.cpp.

References options.

Referenced by Teddy::Models::Vertex::applyColor, Teddy::Models::Vertex::applyNormal, Teddy::Models::Vertex::applyTexture, Teddy::Models::Vertex::applyVertex, Teddy::PhysicalComponents::Dock::beginPlace, Teddy::PhysicalComponents::Area::beginPlace, Teddy::Behaviour::Control::dampen, Teddy::Models::Vertex::debug, Teddy::Graphics::Texture::doBind, Teddy::Graphics::Texture::doFormat, Teddy::PhysicalComponents::Projection::doMaterial, Teddy::Models::TriangleStrip::draw, Teddy::Models::TriangleFan::draw, Teddy::Models::QuadStrip::draw, Teddy::Models::Model::draw, Teddy::Models::Face::draw, Teddy::PhysicalComponents::Projection::drawSelf, Teddy::Models::Vertex::getColor, Teddy::Models::Vertex::getNormal, Teddy::Models::Vertex::getTexture, Teddy::Models::Vertex::getVertex, isEnabledStr, Teddy::Behaviour::Control::less, Teddy::PhysicalComponents::Projection::materialPass, Teddy::Behaviour::Control::more, Teddy::Behaviour::Control::stop, Teddy::Behaviour::Control::tick, Teddy::Models::Element::transformVertices, and Teddy::Graphics::View::View.

const char * Teddy::MixIn::Options::isEnabledStr const unsigned long    options
 

Definition at line 116 of file Options.cpp.

References isEnabled, and options.

unsigned long Teddy::MixIn::Options::operator & const Options &    other
 

Definition at line 78 of file Options.cpp.

References options.

Options & Teddy::MixIn::Options::operator &= const Options &    other
 

Definition at line 88 of file Options.cpp.

References options.

Options & Teddy::MixIn::Options::operator^= const Options &    other
 

Definition at line 100 of file Options.cpp.

References options.

unsigned long Teddy::MixIn::Options::operator| const Options &    other
 

Definition at line 83 of file Options.cpp.

References options.

Options & Teddy::MixIn::Options::operator|= const Options &    other
 

Definition at line 94 of file Options.cpp.

References options.

void Teddy::MixIn::Options::setOptions const unsigned long    options
 

Set flags.

Definition at line 49 of file Options.cpp.

References options.

void Teddy::MixIn::Options::toggle const unsigned long    options
 

Toggle options.

Definition at line 73 of file Options.cpp.

References options.


Member Data Documentation

unsigned long Teddy::MixIn::Options::options [protected]
 

Definition at line 55 of file Options.h.

Referenced by Teddy::Materials::Material::copy, disable, enable, getOptions, isDisabled, isEnabled, isEnabledStr, Teddy::Imports::LWModel::LWModel, operator &, operator &=, operator^=, operator|, operator|=, Options, Teddy::PhysicalComponents::Projection::Projection, setOptions, Teddy::Graphics::Texture::Texture, and toggle.


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