Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.5new_solver
   Version 1.0.5dev
      Class Index
      File List
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads

MyDXFBlock Class Reference

DXF block class. More...

#include <mydxfblocks.hpp>

List of all members.

Public Member Functions

 MyDXFBlock (class MyDXFFile *dxf)
 ~MyDXFBlock ()
void write (class MyDXFFile *dxf, std::ofstream &ostr)
 Write dxf file to stream.
const std::string & name (void)
 Return name of block.
class MyDXFEntitiesget_entities (void)
 Get a pointer to the entities of block.
class MyDXFEntitiesget_entities (void) const
 Get a const pointer to the entities of block.
void explode (class MyDXFEntities *ent, MyDXFFile *dxf, const Transformation *t) const
 Explode block into entities.
void plot (const class MyDXFFile *dxf, cairo_t *cairo, const Transformation *t, const double range[4]) const
 Plot block with cairo.
void get_bbox (Vec3D &min, Vec3D &max, const class MyDXFFile *dxf, const Transformation *t) const
 Return bounding box of entities within the block.
void scale (class MyDXFFile *dxf, double s)
 Scale entities within block by factor s.
void translate (class MyDXFFile *dxf, const Vec3D &dx)
 Translate entity by dx.
void debug_print (std::ostream &os) const
 Print debugging information to stream os.

Friends

std::ostream & operator<< (std::ostream &os, const MyDXFBlock &blk)
 Print debugging information to stream os.

Detailed Description

DXF block class.


Constructor & Destructor Documentation

MyDXFBlock::MyDXFBlock ( class MyDXFFile dxf  ) 
MyDXFBlock::~MyDXFBlock (  ) 

Member Function Documentation

void MyDXFBlock::debug_print ( std::ostream &  os  )  const

Print debugging information to stream os.

void MyDXFBlock::explode ( class MyDXFEntities ent,
MyDXFFile dxf,
const Transformation t 
) const

Explode block into entities.

Tranform entities in the block with tranformation t and add the tranformed entities to the database ent.

void MyDXFBlock::get_bbox ( Vec3D min,
Vec3D max,
const class MyDXFFile dxf,
const Transformation t 
) const

Return bounding box of entities within the block.

class MyDXFEntities* MyDXFBlock::get_entities ( void   )  const [inline]

Get a const pointer to the entities of block.

class MyDXFEntities* MyDXFBlock::get_entities ( void   )  [inline]

Get a pointer to the entities of block.

const std::string& MyDXFBlock::name ( void   )  [inline]

Return name of block.

void MyDXFBlock::plot ( const class MyDXFFile dxf,
cairo_t *  cairo,
const Transformation t,
const double  range[4] 
) const

Plot block with cairo.

Plot the entities withing the block using the transformation t from the object space to cairo coordinates. The visible range is specified by range (xmin,ymin,xmax,ymax) in cairo coordinates.

void MyDXFBlock::scale ( class MyDXFFile dxf,
double  s 
)

Scale entities within block by factor s.

void MyDXFBlock::translate ( class MyDXFFile dxf,
const Vec3D dx 
)

Translate entity by dx.

void MyDXFBlock::write ( class MyDXFFile dxf,
std::ofstream &  ostr 
)

Write dxf file to stream.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const MyDXFBlock blk 
) [friend]

Print debugging information to stream os.


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


Reference manual for Ion Beam Simulator 1.0.5dev
Generated by Doxygen 1.7.1 on Mon Feb 6 2012 15:07:16.