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...
 
Trangeextend (const Trange &range)
 extend this range if argument range is larger More...
 
Trangeextendf (const float &f)
 extend at both ends by a fraction of total range More...
 
Trangeshrink (const Trange &range)
 shrink this range if argument range is smaller More...
 
Trangeshrinkf (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...
 
Trangelcutf (const float &fraction)
 fractional cut at lower edge More...
 
Trangehcutf (const float &fraction)
 fractional cut at higher edge More...
 
Trangelcut (const float &value)
 absolute cut at lower edge More...
 
Trangehcut (const float &value)
 absolute cut at higher edge More...
 
template<typename T >
Trangeoperator*= (const T &value)
 scale both values More...
 
Trangeoperator*= (const Trange &range)
 scale relative to other range More...
 
Trangeswap ()
 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: