COPASI API  4.16.103
Public Member Functions | Public Attributes | List of all members
CLGroupAttributes Struct Reference

#include <utility_classes.h>

Collaboration diagram for CLGroupAttributes:
Collaboration graph
[legend]

Public Member Functions

 CLGroupAttributes ()
 
 CLGroupAttributes (const CLGroupAttributes &src)
 
CLGroupAttributesoperator= (const CLGroupAttributes &src)
 
 ~CLGroupAttributes ()
 

Public Attributes

std::string mEndHead
 
std::string mFill
 
CLGraphicalPrimitive2D::FILL_RULE mFillRule
 
std::string mFontFamily
 
CLRelAbsVector mFontSize
 
CLText::FONT_STYLE mFontStyle
 
CLText::FONT_WEIGHT mFontWeight
 
double mHeight
 
double * mpTransform
 
std::string mStartHead
 
std::string mStroke
 
std::vector< unsigned int > mStrokeDasharray
 
double mStrokeWidth
 
CLText::TEXT_ANCHOR mTextAnchor
 
CLText::TEXT_ANCHOR mVTextAnchor
 
double mWidth
 
double mX
 
double mY
 
double mZ
 

Detailed Description

Definition at line 93 of file utility_classes.h.

Constructor & Destructor Documentation

CLGroupAttributes::CLGroupAttributes ( )

Constructor that fills all values with default attributes.

Definition at line 128 of file utility_classes.cpp.

References CLTransformation::getIdentityMatrix(), and mpTransform.

128  :
129  mStroke("none"),
130  mStrokeWidth(0.0),
132  mpTransform(NULL),
133  mFill("none"),
135  mFontFamily("sans-serif"),
136  mFontSize(CLRelAbsVector(0.0, 0.0)),
141  mStartHead("none"),
142  mEndHead("none"),
143  mX(0),
144  mY(0),
145  mZ(0),
146  mWidth(0),
147  mHeight(0)
148 {
149  this->mpTransform = new double[12];
150  memcpy(this->mpTransform, CLTransformation::getIdentityMatrix(), 12 * sizeof(double));
151 }
CLText::TEXT_ANCHOR mTextAnchor
std::string mEndHead
CLText::FONT_STYLE mFontStyle
std::string mFontFamily
static const double * getIdentityMatrix()
CLRelAbsVector mFontSize
std::vector< unsigned int > mStrokeDasharray
CLGraphicalPrimitive2D::FILL_RULE mFillRule
CLText::TEXT_ANCHOR mVTextAnchor
CLText::FONT_WEIGHT mFontWeight
std::string mStartHead
std::string mStroke
CLGroupAttributes::~CLGroupAttributes ( )

Destructor that deletes the memory used for the transformation array.

Definition at line 156 of file utility_classes.cpp.

References mpTransform.

157 {
158  if (this->mpTransform != NULL)
159  {
160  delete[] this->mpTransform;
161  }
162 }
CLGroupAttributes::CLGroupAttributes ( const CLGroupAttributes src)

Copy constructor.

Definition at line 167 of file utility_classes.cpp.

References mpTransform.

167  :
168  mStroke(src.mStroke),
171  mpTransform(NULL),
172  mFill(src.mFill),
173  mFillRule(src.mFillRule),
175  mFontSize(src.mFontSize),
177  mFontStyle(src.mFontStyle),
180  mStartHead(src.mStartHead),
181  mEndHead(src.mEndHead),
182  mX(src.mX),
183  mY(src.mY),
184  mZ(src.mZ),
185  mWidth(src.mWidth),
186  mHeight(src.mHeight)
187 {
188  this->mpTransform = new double[12];
189  memcpy(this->mpTransform, src.mpTransform, 12 * sizeof(double));
190 }
CLText::TEXT_ANCHOR mTextAnchor
std::string mEndHead
CLText::FONT_STYLE mFontStyle
std::string mFontFamily
CLRelAbsVector mFontSize
std::vector< unsigned int > mStrokeDasharray
CLGraphicalPrimitive2D::FILL_RULE mFillRule
CLText::TEXT_ANCHOR mVTextAnchor
CLText::FONT_WEIGHT mFontWeight
std::string mStartHead
std::string mStroke

Member Function Documentation

CLGroupAttributes & CLGroupAttributes::operator= ( const CLGroupAttributes src)

Assignment operator.

Definition at line 195 of file utility_classes.cpp.

References mEndHead, mFill, mFillRule, mFontFamily, mFontSize, mFontStyle, mFontWeight, mHeight, mpTransform, mStartHead, mStroke, mStrokeDasharray, mStrokeWidth, mTextAnchor, mVTextAnchor, mWidth, mX, mY, and mZ.

196 {
197  if (&src != this)
198  {
199  this->mStroke = src.mStroke;
200  this->mStrokeWidth = src.mStrokeWidth;
202 
203  if (!this->mpTransform)
204  {
205  this->mpTransform = new double[12];
206  }
207 
208  // contains 12 double values
209  memcpy(this->mpTransform, src.mpTransform, 12 * sizeof(double));
210  this->mFill = src.mFill;
211  this->mFillRule = src.mFillRule;
212  this->mFontFamily = src.mFontFamily;
213  this->mFontSize = src.mFontSize;
214  this->mFontWeight = src.mFontWeight;
215  this->mFontStyle = src.mFontStyle;
216  this->mTextAnchor = src.mTextAnchor;
217  this->mVTextAnchor = src.mVTextAnchor;
218  this->mStartHead = src.mStartHead;
219  this->mEndHead = src.mEndHead;
220  this->mX = src.mX;
221  this->mY = src.mY;
222  this->mZ = src.mZ;
223  this->mWidth = src.mWidth;
224  this->mHeight = src.mHeight;
225  }
226 
227  return *this;
228 }
CLText::TEXT_ANCHOR mTextAnchor
std::string mEndHead
CLText::FONT_STYLE mFontStyle
std::string mFontFamily
CLRelAbsVector mFontSize
std::vector< unsigned int > mStrokeDasharray
CLGraphicalPrimitive2D::FILL_RULE mFillRule
CLText::TEXT_ANCHOR mVTextAnchor
CLText::FONT_WEIGHT mFontWeight
std::string mStartHead
std::string mStroke

Member Data Documentation

std::string CLGroupAttributes::mEndHead
std::string CLGroupAttributes::mFill
CLGraphicalPrimitive2D::FILL_RULE CLGroupAttributes::mFillRule
std::string CLGroupAttributes::mFontFamily

Definition at line 103 of file utility_classes.h.

Referenced by CLLayoutRenderer::extract_text_attributes(), and operator=().

CLRelAbsVector CLGroupAttributes::mFontSize

Definition at line 104 of file utility_classes.h.

Referenced by CLLayoutRenderer::extract_text_attributes(), and operator=().

CLText::FONT_STYLE CLGroupAttributes::mFontStyle

Definition at line 106 of file utility_classes.h.

Referenced by CLLayoutRenderer::extract_text_attributes(), and operator=().

CLText::FONT_WEIGHT CLGroupAttributes::mFontWeight

Definition at line 105 of file utility_classes.h.

Referenced by CLLayoutRenderer::extract_text_attributes(), and operator=().

double CLGroupAttributes::mHeight
double* CLGroupAttributes::mpTransform
std::string CLGroupAttributes::mStartHead
std::string CLGroupAttributes::mStroke
std::vector<unsigned int> CLGroupAttributes::mStrokeDasharray
double CLGroupAttributes::mStrokeWidth
CLText::TEXT_ANCHOR CLGroupAttributes::mTextAnchor
CLText::TEXT_ANCHOR CLGroupAttributes::mVTextAnchor
double CLGroupAttributes::mWidth
double CLGroupAttributes::mX
double CLGroupAttributes::mY
double CLGroupAttributes::mZ

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