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

#include <qwt3dScale.h>

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

Public Member Functions

 RowScale (const std::vector< std::string > *vos, int showRow=-1)
 
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 > * mpRowsDes
 
unsigned int showRow
 

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 60 of file qwt3dScale.h.

Constructor & Destructor Documentation

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

Definition at line 138 of file qwt3dScale.cpp.

Referenced by clone().

139  : ValueScale(),
140  mpRowsDes(vos),
142 {}
The standard (1:1) mapping class for axis numbering.
Definition: qwt3dScale.h:33
const std::vector< std::string > * mpRowsDes
Definition: qwt3dScale.h:69
unsigned int showRow
Definition: qwt3dScale.h:70

Member Function Documentation

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

Definition at line 65 of file qwt3dScale.h.

References RowScale().

65 {return new RowScale(*this);}
RowScale(const std::vector< std::string > *vos, int showRow=-1)
Definition: qwt3dScale.cpp:138
QString RowScale::ticLabel ( unsigned int  idx) const

Definition at line 144 of file qwt3dScale.cpp.

References mpRowsDes, and showRow.

145 {
146  if (!mpRowsDes) return QString("");
147 
148  if ((mpRowsDes->size() - 1) < idx) return QString("");
149 
150  if (showRow == (unsigned int) - 1)
151  {
152  std::string a;
153  a = (*mpRowsDes)[idx];
154  return (QString(a.c_str()));
155  }
156  else
157  {
158  if (showRow == idx)
159  {
160  std::string a;
161  a = (*mpRowsDes)[idx];
162  return (QString(a.c_str()));
163  }
164  else
165  {
166  return QString("");
167  }
168  }
169 }
const std::vector< std::string > * mpRowsDes
Definition: qwt3dScale.h:69
unsigned int showRow
Definition: qwt3dScale.h:70

Friends And Related Function Documentation

friend class Qwt3D::Axis
friend

Definition at line 62 of file qwt3dScale.h.

friend class Qwt3D::qwt3d_ptr< Scale >
friend

Definition at line 63 of file qwt3dScale.h.

Member Data Documentation

const std::vector<std::string>* RowScale::mpRowsDes

Definition at line 69 of file qwt3dScale.h.

Referenced by ticLabel().

unsigned int RowScale::showRow

Definition at line 70 of file qwt3dScale.h.

Referenced by ticLabel().


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