ubit
Public Member Functions | List of all members
ubit::UInscale Class Reference

Zooming conditions (for semantic zooming). More...

#include <uzoom.hpp>

Inheritance diagram for ubit::UInscale:
ubit::UCond

Public Member Functions

 UInscale (float _smin, float _smax)
 
void setMin (float _smin)
 
void setMax (float _smax)
 
float getMin () const
 
float getMax () const
 
virtual bool verifies (const UUpdateContext &, const UElem &) const
 
- Public Member Functions inherited from ubit::UCond
virtual bool operator== (const UCond &c) const
 
virtual bool operator!= (const UCond &c) const
 
virtual const UCondmatches (const UCond &c) const
 
virtual UOntoOn ()
 
virtual const UOntoOn () const
 
virtual void setParentModes (UElem &parent) const
 

Detailed Description

Zooming conditions (for semantic zooming).

objects prefixed by this range condition will only appear or be effective if the scale (see UScale) is inside this range. example:

     uinscale(0.75,2.50) / ubox(UColor::red + "Hello World!")

this box will only be visible is the scale is between 0.75 and 2.50

!Warning: UInscale objects must not be deleted!

Note: UInscale was called USrange in older versions of the Ubit toolkit.


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