QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DL_Extrusion Class Reference

Storing and passing around attributes. More...

#include <dl_extrusion.h>

List of all members.

Public Member Functions

 DL_Extrusion ()
 Default constructor.
 DL_Extrusion (double dx, double dy, double dz, double elevation)
 Constructor for DXF extrusion.
double * getDirection () const
void getDirection (double dir[]) const
double getElevation () const
DL_Extrusion operator= (const DL_Extrusion &extru)
 Copies extrusion (deep copies) from another extrusion object.
void setDirection (double dx, double dy, double dz)
 Sets the direction vector.
void setElevation (double elevation)
 Sets the elevation.
 ~DL_Extrusion ()
 Destructor.

Private Attributes

double * direction
double elevation

Detailed Description

Storing and passing around attributes.

Attributes are the layer name, color, width and line type.

Author:
Andrew Mustun

Constructor & Destructor Documentation

DL_Extrusion::DL_Extrusion ( )
inline

Default constructor.

DL_Extrusion::~DL_Extrusion ( )
inline

Destructor.

DL_Extrusion::DL_Extrusion ( double  dx,
double  dy,
double  dz,
double  elevation 
)
inline

Constructor for DXF extrusion.

Parameters:
directionVector of axis along which the entity shall be extruded this is also the Z axis of the Entity coordinate system
elevationDistance of the entities XY plane from the origin of the world coordinate system

Member Function Documentation

double* DL_Extrusion::getDirection ( ) const
inline
Returns:
direction vector.
void DL_Extrusion::getDirection ( double  dir[]) const
inline
Returns:
direction vector.
double DL_Extrusion::getElevation ( ) const
inline
Returns:
Elevation.
DL_Extrusion DL_Extrusion::operator= ( const DL_Extrusion extru)
inline

Copies extrusion (deep copies) from another extrusion object.

void DL_Extrusion::setDirection ( double  dx,
double  dy,
double  dz 
)
inline

Sets the direction vector.

void DL_Extrusion::setElevation ( double  elevation)
inline

Sets the elevation.


Member Data Documentation

double* DL_Extrusion::direction
private
double DL_Extrusion::elevation
private

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