inlib  1.2.0
Public Types | Public Member Functions
inlib::hep::polyhedronProcessor Class Reference

List of all members.

Public Types

enum  Operation { UNION = 0, INTERSECTION = 1, SUBTRACTION = 2 }

Public Member Functions

 polyhedronProcessor ()
virtual ~polyhedronProcessor ()
void push_back (Operation a_op, const polyhedron &a_polyhedron)
bool execute (polyhedron &)
void clear ()
bool is_same_op () const
bool execute1 (polyhedron &, const std::vector< unsigned int > &)

Detailed Description

Definition at line 469 of file polyhedron.


Member Enumeration Documentation

Enumerator:
UNION 
INTERSECTION 
SUBTRACTION 

Definition at line 471 of file polyhedron.

                 { //Must be the same than BooleanProcessor OP_XXX.
     UNION  = 0
    ,INTERSECTION = 1
    ,SUBTRACTION = 2
  };

Constructor & Destructor Documentation

inlib::hep::polyhedronProcessor::polyhedronProcessor ( ) [inline]

Definition at line 479 of file polyhedron.

{}
virtual inlib::hep::polyhedronProcessor::~polyhedronProcessor ( ) [inline, virtual]

Definition at line 480 of file polyhedron.

{}

Member Function Documentation

void inlib::hep::polyhedronProcessor::clear ( ) [inline]

Definition at line 489 of file polyhedron.

{ m_ops.clear();}
bool inlib::hep::polyhedronProcessor::execute ( polyhedron )
bool inlib::hep::polyhedronProcessor::execute1 ( polyhedron ,
const std::vector< unsigned int > &   
)
bool inlib::hep::polyhedronProcessor::is_same_op ( ) const [inline]

Definition at line 490 of file polyhedron.

                          {
    if(!m_ops.size()) return true;
    Operation op = m_ops[0].first;
    std::vector<op_t>::const_iterator it;
    for(it=m_ops.begin();it!=m_ops.end();++it) {
      if((*it).first!=op) return false;
    }
    return true;
  }
void inlib::hep::polyhedronProcessor::push_back ( Operation  a_op,
const polyhedron a_polyhedron 
) [inline]

Definition at line 485 of file polyhedron.

                                                                {
    m_ops.push_back(op_t(a_op,a_polyhedron));
  }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines