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

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::Solid ( )
protected

Constructor.

◆ ~Solid()

Solid::~Solid ( )
virtual

Virtual destructor.

Member Function Documentation

◆ debug_print()

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

Print debugging information to os.

Implemented in STLSolid, FuncSolid, DXFSolid, and CSGObjectSolid.

◆ inside()

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

Return if point x is inside solid.

Implemented in STLSolid, FuncSolid, DXFSolid, and CSGObjectSolid.

◆ reset_transformation()

void Solid::reset_transformation ( void  )

Set transformation to unity.

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

◆ rotate_x()

void Solid::rotate_x ( double  a)

Rotate solid around x-axis.

Rotate around x-axis for a radians.

◆ rotate_y()

void Solid::rotate_y ( double  a)

Rotate solid around y-axis.

Rotate around y-axis for a radians.

◆ rotate_z()

void Solid::rotate_z ( double  a)

Rotate solid around z-axis.

Rotate around z-axis for a radians.

◆ save()

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

Saves solid data to stream.

Implemented in STLSolid, FuncSolid, DXFSolid, and CSGObjectSolid.

◆ scale() [1/2]

void Solid::scale ( const Vec3D sx)

Scale solid.

◆ scale() [2/2]

void Solid::scale ( double  sx)

Scale solid.

◆ set_transformation()

void Solid::set_transformation ( const Transformation T)

Set transformation.

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

◆ translate()

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.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.