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
CSGObjectSolid Class Reference

CSGObject solid class. More...

#include <csgobject_solid.hpp>

Inheritance diagram for CSGObjectSolid:
Solid

Public Member Functions

 CSGObjectSolid (CSGObject *object)
 Constructor for Solid using CSGObject object for defining the geometry. More...
 
 CSGObjectSolid (std::istream &s)
 Constructor for loading solid data from a file. More...
 
 ~CSGObjectSolid ()
 Destructor. More...
 
bool inside (const Vec3D &x) const
 Return if point x is inside funcsolid. More...
 
void debug_print (std::ostream &os) const
 Print debugging information to os. More...
 
void save (std::ostream &fout) const
 Saves solid data to stream. More...
 
- Public Member Functions inherited from Solid
virtual ~Solid ()
 Virtual destructor. 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...
 

Additional Inherited Members

- Protected Member Functions inherited from Solid
 Solid ()
 Constructor. More...
 
- Protected Attributes inherited from Solid
Transformation _T
 

Detailed Description

CSGObject solid class.

CSGObjectSolid is an implementation of Solid using constructive solid geometry objects.

Constructor & Destructor Documentation

◆ CSGObjectSolid() [1/2]

CSGObjectSolid::CSGObjectSolid ( CSGObject *  object)
inline

Constructor for Solid using CSGObject object for defining the geometry.

A pointer to the CSGObject is saved in the CSGObjectSolid. The user must take care of calling the destructor of the CSGObject after use.

◆ CSGObjectSolid() [2/2]

CSGObjectSolid::CSGObjectSolid ( std::istream &  s)

Constructor for loading solid data from a file.

◆ ~CSGObjectSolid()

CSGObjectSolid::~CSGObjectSolid ( )
inline

Destructor.

Member Function Documentation

◆ debug_print()

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

Print debugging information to os.

Implements Solid.

◆ inside()

bool CSGObjectSolid::inside ( const Vec3D x) const
virtual

Return if point x is inside funcsolid.

Implements Solid.

◆ save()

void CSGObjectSolid::save ( std::ostream &  fout) const
virtual

Saves solid data to stream.

Implements 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.