COPASI API  4.16.103
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
ColumnScale Class Reference

#include <qwt3dScale.h>

Inheritance diagram for ColumnScale:
Inheritance graph
[legend]
Collaboration diagram for ColumnScale:
Collaboration graph
[legend]

Public Member Functions

 ColumnScale (const std::vector< std::string > *vos, int showColumn=-1)
 
virtual QString ticLabel (unsigned int idx) const
 
- Public Member Functions inherited from ValueScale
QString ticLabel (unsigned int idx) const
 

Public Attributes

const std::vector< std::string > * mpColumnsDes
 
unsigned int showColumn
 

Protected Member Functions

Qwt3D::Scale * clone () const
 
- Protected Member Functions inherited from ValueScale
int autoscale (double &a, double &b, double start, double stop, int ivals)
 Applies LinearAutoScaler::execute() More...
 
void calculate ()
 Creates the major and minor vector for the scale. More...
 
Qwt3D::Scale * clone () const
 Returns a new heap based object utilized from qwt3d_ptr. More...
 

Friends

class Qwt3D::Axis
 
class Qwt3D::qwt3d_ptr< Scale >
 

Additional Inherited Members

- Protected Attributes inherited from ValueScale
LinearAutoScaler2 autoscaler_p2
 

Detailed Description

Definition at line 47 of file qwt3dScale.h.

Constructor & Destructor Documentation

ColumnScale::ColumnScale ( const std::vector< std::string > *  vos,
int  showColumn = -1 
)

Definition at line 171 of file qwt3dScale.cpp.

Referenced by clone().

172  : ValueScale(),
173  mpColumnsDes(vos),
175 {}
unsigned int showColumn
Definition: qwt3dScale.h:57
The standard (1:1) mapping class for axis numbering.
Definition: qwt3dScale.h:33
const std::vector< std::string > * mpColumnsDes
Definition: qwt3dScale.h:56

Member Function Documentation

Qwt3D::Scale* ColumnScale::clone ( ) const
inlineprotected

Definition at line 52 of file qwt3dScale.h.

References ColumnScale().

52 {return new ColumnScale(*this);}
ColumnScale(const std::vector< std::string > *vos, int showColumn=-1)
Definition: qwt3dScale.cpp:171
QString ColumnScale::ticLabel ( unsigned int  idx) const
virtual

Definition at line 177 of file qwt3dScale.cpp.

References mpColumnsDes, and showColumn.

178 {
179  if (!mpColumnsDes) return QString("");
180 
181  if ((mpColumnsDes->size() - 1) < idx) return QString("");
182 
183  if (showColumn == (unsigned int) - 1)
184  {
185  std::string a;
186  a = (*mpColumnsDes)[idx];
187  return (QString(a.c_str()));
188  }
189  else
190  {
191  if (showColumn == idx)
192  {
193  std::string a;
194  a = (*mpColumnsDes)[idx];
195  return (QString(a.c_str()));
196  }
197  else
198  {
199  return QString("");
200  }
201  }
202 }
unsigned int showColumn
Definition: qwt3dScale.h:57
const std::vector< std::string > * mpColumnsDes
Definition: qwt3dScale.h:56

Friends And Related Function Documentation

friend class Qwt3D::Axis
friend

Definition at line 49 of file qwt3dScale.h.

friend class Qwt3D::qwt3d_ptr< Scale >
friend

Definition at line 50 of file qwt3dScale.h.

Member Data Documentation

const std::vector<std::string>* ColumnScale::mpColumnsDes

Definition at line 56 of file qwt3dScale.h.

Referenced by ticLabel().

unsigned int ColumnScale::showColumn

Definition at line 57 of file qwt3dScale.h.

Referenced by ticLabel().


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