bcell3d_factory< C, V > Class Template Reference

#include <bcell3d_factory.hpp>

List of all members.

Public Types

Public Member Functions

Static Public Member Functions


Detailed Description

template<class C, class V>
class mmx::shape::bcell3d_factory< C, V >

Definition at line 36 of file bcell3d_factory.hpp.


Member Typedef Documentation

Definition at line 42 of file bcell3d_factory.hpp.

Definition at line 43 of file bcell3d_factory.hpp.

typedef bounding_box<C,Ref> BoundingBox

Definition at line 40 of file bcell3d_factory.hpp.

typedef bcell3d<C,Ref> Cell

Definition at line 41 of file bcell3d_factory.hpp.

Definition at line 45 of file bcell3d_factory.hpp.

typedef bcell3d_list<C,Ref> Cell3dList

Definition at line 47 of file bcell3d_factory.hpp.


Member Function Documentation

Cell* create ( const Seq< Shape * > &  s,
const BoundingBox bx 
) [inline]

Definition at line 75 of file bcell3d_factory.hpp.

References bcell3d_factory< C, V >::create(), bcell3d_list< C, V >::push_back(), and Seq< C, R >::size().

00075                                                              {
00076     Cell * bcell = NULL ;
00077   
00078     if(s.size()==1)
00079       return create(s[0],bx);
00080     else if(s.size()>1) {
00081       Cell3dList* l= new Cell3dList(bx);
00082       foreach(Shape* o, s)
00083         l->push_back(create(o,bx)) ;
00084       bcell = l;
00085     }
00086     
00087     return bcell;
00088   }

Cell* create ( Shape s,
const BoundingBox bx 
) [inline]

Definition at line 57 of file bcell3d_factory.hpp.

Referenced by bcell3d_factory< C, V >::create().

00057                                                  {
00058     Cell * bcell = NULL ;
00059    
00060     if(AlgebraicSurface* isurface = dynamic_cast<AlgebraicSurface *>(s)) {
00061       bcell = new Cell3dAlgebraicSurface(*isurface,bx);
00062     }
00063 
00064   //   if(AlgebraicCurve* ic = dynamic_cast<AlgebraicCurve *>(s)) {
00065 //       bcell = new Cell3dAlgebraicCurve(ic, bx);
00066 //     }
00067 
00068     //if(ParametricSurface* psurface = dynamic_cast<ParametricSurface *>(s)) {
00069     //  bcell = new Cell_ParametricSurface(psurface);
00070     //  }
00071 
00072     return bcell ;
00073   }

static bcell3d_factory<C,V>* instance ( void   )  [inline, static]

Definition at line 50 of file bcell3d_factory.hpp.

References Cell3dFactory.

Referenced by mesher3d_shape< C, V >::mesher3d_shape(), and mesher3d_shape< C, V >::set_input().

00050                                         {
00051     if(!m_instance)
00052       m_instance = new Cell3dFactory ;
00053     
00054     return m_instance ;
00055   }

typedef REF_OF (  ) 
typedef SHAPE_OF (  ) 

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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1