In file graphics2D/ScaleCamera.h:

namespace yav class ScaleCamera : public Activable, public DPOwner<Scalable>, public Pointed<ScaleCamera>

an interface class defining generic commands for a scale connected to a set of scalables

Inheritance:


Public Methods

virtual void setLabel (const TclString& lab)
set scale label
virtual void setBounds (double min, double max)
set scale bounds
virtual void set (double val)
set a new value to scale
virtual void to (double val)
set a new value to scale but do not call scale command
virtual void configureToMax (void)
set bounds of the scale to min/max of all managed scalables
virtual double get (void) const
returns scale value
virtual void checkValue (void)
checks if the current value is between the min and max value; if not then set the value to (min+max)/2
virtual void on (void)
activates scale, overloads Activate::on
virtual void dying (const Scalable *elt)
callback function for a DPList element being removed
virtual void operator+= (Scalable *sclb) throw(DPList<Scalable>::NullPointer, DPList<Scalable>::AlreadyInList)
adds a new scalable to scale object
virtual void operator-= (Scalable *sclb) throw(DPList<Scalable>::NotFound)
removes a scalable from a scale object
virtual void reset (Scalable *cam, const TclString& lab)
reset scale bounds and label
const DPList <Scalable> & getObjects (void) const
returns iterator on handled scalable list
virtual const std::type_info& getType (void) const
returns scale type
virtual void activation (void)
Activation callback: activates scale up and down

Public

constructor
ScaleCamera ()
builds a scale object
ScaleCamera (std::list<Scalable *>& list)
builds a scale object that manages given list of scalables
ScaleCamera (Scalable *elt)
builds a scale object that manages a given scalable
destructor
virtual ~ScaleCamera ()
destroys associated TCL scale

Documentation

an interface class defining generic commands for a scale connected to a set of scalables
constructor

ScaleCamera()
builds a scale object

ScaleCamera(std::list<Scalable *>& list)
builds a scale object that manages given list of scalables
Parameters:
list - object this scale commands

ScaleCamera(Scalable *elt)
builds a scale object that manages a given scalable
Parameters:
list - object this scale commands

destructor

virtual ~ScaleCamera()
destroys associated TCL scale

virtual void setLabel(const TclString& lab)
set scale label
Parameters:
lab - new scale label

virtual void setBounds(double min, double max)
set scale bounds
Parameters:
min - scale min value
max - scale min value

virtual void set(double val)
set a new value to scale
Parameters:
val - new scale value

virtual void to(double val)
set a new value to scale but do not call scale command
Parameters:
val - new scale value

virtual void configureToMax(void)
set bounds of the scale to min/max of all managed scalables

virtual double get(void) const
returns scale value

virtual void checkValue(void)
checks if the current value is between the min and max value; if not then set the value to (min+max)/2

virtual void on(void)
activates scale, overloads Activate::on

virtual void dying(const Scalable *elt)
callback function for a DPList element being removed
Parameters:
elt - element being removed

virtual void operator+=(Scalable *sclb) throw(DPList<Scalable>::NullPointer, DPList<Scalable>::AlreadyInList)
adds a new scalable to scale object
Parameters:
sclb - scalable to command

virtual void operator-=(Scalable *sclb) throw(DPList<Scalable>::NotFound)
removes a scalable from a scale object
Parameters:
sclb - scalable to release

virtual void reset(Scalable *cam, const TclString& lab)
reset scale bounds and label
Parameters:
cam - calling viewer
lav - new scale label (if not EMPTY_STRING)

const DPList <Scalable> & getObjects(void) const
returns iterator on handled scalable list

virtual const std::type_info& getType(void) const
returns scale type

virtual void activation(void)
Activation callback: activates scale up and down


Direct child classes:
TclScale

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de