Navigation

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

Solid base class. More...

#include <solid.hpp>

Inheritance diagram for Solid:
CSGObjectSolid DXFSolid FuncSolid STLSolid

Public Member Functions

virtual ~Solid ()
 Virtual destructor. More...
 
virtual bool inside (const Vec3D &x) const =0
 Return if point x is inside solid. More...
 
void reset_transformation (void)
 Set transformation to unity. More...
 
void set_transformation (const Transformation &T)
 Set transformation. More...
 
void translate (const Vec3D &dx)
 Translate solid. More...
 
void scale (double sx)
 Scale solid. More...
 
void scale (const Vec3D &sx)
 Scale solid. More...
 
void rotate_x (double a)
 Rotate solid around x-axis. More...
 
void rotate_y (double a)
 Rotate solid around y-axis. More...
 
void rotate_z (double a)
 Rotate solid around z-axis. More...
 
virtual void debug_print (std::ostream &os) const =0
 Print debugging information to os. More...
 
virtual void save (std::ostream &s) const =0
 Saves solid data to stream. More...
 

Protected Member Functions

 Solid ()
 Constructor. More...
 

Protected Attributes

Transformation _T
 

Detailed Description

Solid base class.

Solid class holds the definition for one solid. Solid class is a base class, different implementation exist.

Constructor & Destructor Documentation

Solid::Solid ( )
protected

Constructor.

Solid::~Solid ( )
virtual

Virtual destructor.

Member Function Documentation

virtual void Solid::debug_print ( std::ostream &  os) const
pure virtual

Print debugging information to os.

Implemented in DXFSolid, STLSolid, CSGObjectSolid, and FuncSolid.

virtual bool Solid::inside ( const Vec3D x) const
pure virtual

Return if point x is inside solid.

Implemented in DXFSolid, STLSolid, CSGObjectSolid, and FuncSolid.

void Solid::reset_transformation ( void  )

Set transformation to unity.

Resets the primary 3D to 3D transformation to unity.

void Solid::rotate_x ( double  a)

Rotate solid around x-axis.

Rotate around x-axis for a radians.

void Solid::rotate_y ( double  a)

Rotate solid around y-axis.

Rotate around y-axis for a radians.

void Solid::rotate_z ( double  a)

Rotate solid around z-axis.

Rotate around z-axis for a radians.

virtual void Solid::save ( std::ostream &  s) const
pure virtual

Saves solid data to stream.

Implemented in DXFSolid, STLSolid, CSGObjectSolid, and FuncSolid.

void Solid::scale ( double  sx)

Scale solid.

void Solid::scale ( const Vec3D sx)

Scale solid.

void Solid::set_transformation ( const Transformation T)

Set transformation.

Sets the primary 3D to 3D transformation as a copy of transformation of T.

void Solid::translate ( const Vec3D dx)

Translate solid.


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


Reference manual for Ion Beam Simulator 1.0.6
Generated by Doxygen 1.8.5 on Mon Jun 15 2015 09:59:33.