Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   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
MyDXFMText Class Reference

DXF text entity class. More...

#include <mydxfmtext.hpp>

Inheritance diagram for MyDXFMText:
MyDXFEntity

Public Member Functions

 MyDXFMText ()
 Default constructor. More...
 
 MyDXFMText (class MyDXFFile *dxf)
 Construct line entity by reading from DXF file. More...
 
virtual ~MyDXFMText ()
 Virtual destructor. More...
 
virtual MyDXFMTextcopy (void) const
 Get a new copy of entity. More...
 
virtual void explode (class MyDXFEntities *ent, MyDXFFile *dxf, const Transformation *t) const
 Explode into entities. More...
 
virtual void write (class MyDXFFile *dxf, std::ofstream &ostr)
 Write dxf file to stream. More...
 
virtual EntityType get_type (void) const
 Get entity type. More...
 
virtual void plot (const class MyDXFFile *dxf, cairo_t *cairo, const Transformation *t, const double range[4]) const
 Plot entity with cairo. More...
 
virtual void get_bbox (Vec3D &min, Vec3D &max, const class MyDXFFile *dxf, const Transformation *t) const
 Return bounding box of entity. More...
 
virtual void scale (class MyDXFFile *dxf, double s)
 Scale entity by factor s. More...
 
virtual void translate (class MyDXFFile *dxf, const Vec3D &dx)
 Translate entity by dx. More...
 
virtual void rotate_z (class MyDXFFile *dxf, double a)
 Rotate entity around origin. More...
 
virtual void debug_print (std::ostream &os) const
 Print debugging information to stream os. More...
 
- Public Member Functions inherited from MyDXFEntity
virtual ~MyDXFEntity ()
 Virtual destructor. More...
 
void set_layer (const std::string &layer)
 Set layer. More...
 
std::string get_layer (void) const
 Get layer. More...
 
void set_handle (const std::string &handle)
 Set entity handle. More...
 
std::string get_handle (void) const
 Get entity handle. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MyDXFEntity
void write_common (class MyDXFFile *dxf, std::ofstream &ostr)
 
void process_group (class MyDXFFile *dxf)
 
void constructor_debug_print (void) const
 
void debug_print_base (std::ostream &os) const
 
- Static Protected Member Functions inherited from MyDXFEntity
static void bbox_ppoint (Vec3D &min, Vec3D &max, const Vec3D &p)
 Propose a point to bounding box. More...
 
- Protected Attributes inherited from MyDXFEntity
std::string _handle
 
std::string _layer
 

Detailed Description

DXF text entity class.

Constructor & Destructor Documentation

◆ MyDXFMText() [1/2]

MyDXFMText::MyDXFMText ( )

Default constructor.

◆ MyDXFMText() [2/2]

MyDXFMText::MyDXFMText ( class MyDXFFile dxf)

Construct line entity by reading from DXF file.

◆ ~MyDXFMText()

virtual MyDXFMText::~MyDXFMText ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ copy()

virtual MyDXFMText* MyDXFMText::copy ( void  ) const
inlinevirtual

Get a new copy of entity.

Implements MyDXFEntity.

◆ debug_print()

void MyDXFMText::debug_print ( std::ostream &  os) const
virtual

Print debugging information to stream os.

Implements MyDXFEntity.

◆ explode()

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

Explode into entities.

Break entity into atomic entities and tranform entities them with tranformation t. Add the tranformed entities to the database ent.

Implements MyDXFEntity.

◆ get_bbox()

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

Return bounding box of entity.

Implements MyDXFEntity.

◆ get_type()

virtual EntityType MyDXFMText::get_type ( void  ) const
inlinevirtual

Get entity type.

Implements MyDXFEntity.

◆ plot()

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

Plot entity with cairo.

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

Implements MyDXFEntity.

◆ rotate_z()

void MyDXFMText::rotate_z ( class MyDXFFile dxf,
double  a 
)
virtual

Rotate entity around origin.

Rotate for a radians.

Implements MyDXFEntity.

◆ scale()

void MyDXFMText::scale ( class MyDXFFile dxf,
double  s 
)
virtual

Scale entity by factor s.

Implements MyDXFEntity.

◆ translate()

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

Translate entity by dx.

Implements MyDXFEntity.

◆ write()

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

Write dxf file to stream.

Implements MyDXFEntity.


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


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.