CPanelLabel Class Reference

#include <panel.h>

List of all members.

Public Member Functions

 CPanelLabel ()
 CPanelLabel (const CPanelLabel &)
CPanelLabel rotate (const CPoint3d &, const CMatrix &) const
CPanelLabel operator+ (const CVector3d &) const
CPanelLabeloperator= (const CPanelLabel &)

Public Attributes

string name
int height
int color
CPoint3d origin
CVector3d direction

Friends

ostream & operator<< (ostream &, const CPanelLabel &)


Detailed Description

This class describe a label for a panel

Definition at line 48 of file panel.h.


Constructor & Destructor Documentation

CPanelLabel::CPanelLabel (  ) 

Default constructor

Definition at line 32 of file panel.cpp.

CPanelLabel::CPanelLabel ( const CPanelLabel lb  ) 

Copy constructor.

Definition at line 39 of file panel.cpp.


Member Function Documentation

CPanelLabel CPanelLabel::rotate ( const CPoint3d p,
const CMatrix m 
) const

function for rotating a label.

Rotates a label around a point.

Definition at line 46 of file panel.cpp.

References color, direction, height, name, and origin.

Referenced by CPanel::rotate().

CPanelLabel CPanelLabel::operator+ ( const CVector3d transl  )  const

operator to translate a label

Performs a 3D translation of a label by a given vector.

Definition at line 63 of file panel.cpp.

References color, direction, height, name, and origin.

CPanelLabel & CPanelLabel::operator= ( const CPanelLabel lb  ) 

operator to copy a label

Performs an assignment.

Definition at line 79 of file panel.cpp.

References color, direction, height, name, and origin.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ,
const CPanelLabel  
) [friend]

Outputs a CPanelLabel to a stream. exemple: cout << panel[i].label;

Definition at line 997 of file panel.cpp.


Member Data Documentation

label name of the panel

Definition at line 55 of file panel.h.

Referenced by CSailPainter::drawLabels(), operator+(), operator=(), rotate(), and CSailCarlsonWriter::writePanelHeader().

label text height (default : 5)

Definition at line 58 of file panel.h.

Referenced by operator+(), operator=(), rotate(), and CSailCarlsonWriter::writePanelHeader().

label text color (default : 1)

Definition at line 61 of file panel.h.

Referenced by operator+(), operator=(), rotate(), and CSailCarlsonWriter::writePanelHeader().

direction for writing the label

Definition at line 67 of file panel.h.

Referenced by operator+(), operator=(), and rotate().


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

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6