namespace yav class TclScale : public TclSon, public TclObject, public ScaleCamera C++ representation of a TCL scale
| | setLabel (const TclString& lab) set scale label |
| | configureToMax (void) set bounds of the scale to min/max of all managed scalables |
| | setBounds (double min, double max) set scale bounds |
| | command (double val) TCL slider moved: call update command if needed |
| | set (double val) set a new value to scale |
| | to (double val) set a new value to scale but do not call scale command |
| | get (void) const returns scale value |
| | checkValue (void) checks if the current value is between the min and max value; if not then set the value to (min+max)/2 |
| | on (void) activates scale, overloads Activate::on |
| | dying (const Scalable *elt) callback function for a DPList element being removed |
| | operator+= (Scalable *inrv) throw(DPList<Scalable>::NullPointer, DPList<Scalable>::AlreadyInList) adds a new viewer to scale object |
| | operator-= (Scalable *inrv) throw(DPList<Scalable>::NotFound) removes a viewer from a scale object |
| | getRef (void) const fix ambigous AutoLink::getRef method call |
| | getHead (void) fix ambigous AutoLink::getHead method call |
| | following (void) const fix ambigous AutoLink::following method call |
| | getType (void) const returns scale type |
| | destroyCmd (int argc, char **argv) -destroy TCL option |
| | widgetCmd (int argc, char **argv) - TCL option |
| | getCmd (int argc, char **argv) -name TCL option |
| | setCmd (int argc, char **argv) -get TCL option |
| | commandCmd (int argc, char **argv) -set TCL option |
| | activateCmd (int argc, char **argv) -activate TCL option |
| | fromCmd (int argc, char **argv) -from TCL option |
| | toCmd (int argc, char **argv) -to TCL option |
| | maxStepsCmd (int argc, char **argv) -maxSteps TCL option |
| | resolutionCmd (int argc, char **argv) -resolution TCL option |
| | scalablesCmd (TclModule *m, int argc, char **argv) TCL scalables command |
| | objectsCmd (int argc, char **argv) TCL -objects option |
| | addCmd (int argc, char **argv) TCL -add option |
| | removeCmd (int argc, char **argv) TCL -remove option |
| | dieCmd (int argc, char **argv) TCL -die option |
| | constructor
| ||||||
| | destructor
|
| | activation (void) Activation callback: activates scale up and down |
| | update (double val) const callback function for scales when slider moved |
| | dieWhenEmpty indicates whether this scale should kill itself when its DPList becomes empty |
| | activationDir activation direction |
| | init (const std::type_info& type, TclString menu) init tcl commands |
C++ representation of a TCL scale
double min
double value
unsigned int maxSteps
constructor
TclScale(const std::type_info& type, const TclString& scaleName, TclModule *module, TclString menu="graphics2D::scalePopupMenu")
scaleName - TCL scale name (TCL scale must exist)
module - module this Scale is created in
menu - the pop-up menu associated with the scale
TclScale(const std::type_info &type, const TclString& scaleName, TclModule *module, std::list<Scalable *>& list, TclString menu="graphics2D::scalePopupMenu")
module - module this SliceScale is created in
scaleName - TCL scale name
list - scenes this scale commands
menu - the pop-up menu associated with the scale
TclScale(const std::type_info &type, const TclString& scaleName, TclModule *module, Scalable *elt, TclString menu="graphics2D::scalePopupMenu")
module - module this SliceScale is created in
scaleName - TCL scale name
elt - scalable this scale commands
menu - the pop-up menu associated with the scale
destructor
void setLabel(const TclString& lab)
void configureToMax(void)
void setBounds(double min, double max)
max - scale min value
virtual void command(double val)
virtual void set(double val)
virtual void to(double val)
virtual double get(void) const
virtual void checkValue(void)
virtual void on(void)
virtual void dying(const Scalable *elt)
virtual void operator+=(Scalable *inrv) throw(DPList<Scalable>::NullPointer, DPList<Scalable>::AlreadyInList)
virtual void operator-=(Scalable *inrv) throw(DPList<Scalable>::NotFound)
virtual unsigned int getRef(void) const
static TclScale* getHead(void)
virtual TclScale* following(void) const
virtual const std::type_info& getType(void) const
int destroyCmd(int argc, char **argv)
int widgetCmd(int argc, char **argv)
int getCmd(int argc, char **argv)
int setCmd(int argc, char **argv)
int commandCmd(int argc, char **argv)
int activateCmd(int argc, char **argv)
int fromCmd(int argc, char **argv)
int toCmd(int argc, char **argv)
int maxStepsCmd(int argc, char **argv)
int resolutionCmd(int argc, char **argv)
static int scalablesCmd(TclModule *m, int argc, char **argv)
int objectsCmd(int argc, char **argv)
int addCmd(int argc, char **argv)
int removeCmd(int argc, char **argv)
int dieCmd(int argc, char **argv)
bool dieWhenEmpty
void init(const std::type_info& type, TclString menu)
bool firstupdate
virtual void activation(void)
virtual void update(double val) const
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