libpgplotxx.a (C++ interface to PGPLOT)
pgplot::Trange Struct Reference

hold any parameter range More...

#include <structs.h>

Public Member Functions

 Trange (const float &themin, const float &themax)
 set constgructor More...
 
 Trange (const Trange &range)
 copy constgructor More...
 
 Trange ()
 default constructor More...
 
Trange & extend (const Trange &range)
 extend this range if argument range is larger More...
 
Trange & extendf (const float &f)
 extend at both ends by a fraction of total range More...
 
Trange & shrink (const Trange &range)
 shrink this range if argument range is smaller More...
 
Trange & shrinkf (const Trange &range)
 fractional shrink/extend More...
 
float absmax () const
 return absolute maximum More...
 
float abs () const
 return total range More...
 
float fullrange () const
 return absolute range More...
 
Trange & lcutf (const float &fraction)
 fractional cut at lower edge More...
 
Trange & hcutf (const float &fraction)
 fractional cut at higher edge More...
 
Trange & lcut (const float &value)
 absolute cut at lower edge More...
 
Trange & hcut (const float &value)
 absolute cut at higher edge More...
 
template<typename T >
Trange & operator*= (const T &value)
 scale both values More...
 
Trange & operator*= (const Trange &range)
 scale relative to other range More...
 
Trange & swap ()
 swap range More...
 
bool contains (const float &v) const
 check if value is inside range More...
 

Public Attributes

float min
 range [min....max] More...
 
float max
 

Detailed Description

hold any parameter range

See also
basic_device::rnge
Trect
Warning
The definition of total() and absrange() was counter-intuitive! Both functions are renamed (18.1.2011):

Definition at line 42 of file structs.h.


The documentation for this struct was generated from the following file: