MushMeshLibraryPrism Class Reference

#include <MushMeshLibraryPrism.h>

Inheritance diagram for MushMeshLibraryPrism:

MushMesh4Base MushcoreVirtualObject List of all members.

Public Member Functions

 MushMeshLibraryPrism ()
virtual void Make (MushMesh4Mesh &ioMesh) const
const Mushware::U32Order (void) const
void OrderSet (const Mushware::U32 &inValue)
virtual const char * AutoName (void) const
virtual MushcoreVirtualObjectAutoClone (void) const
virtual MushcoreVirtualObjectAutoCreate (void) const
virtual void AutoPrint (std::ostream &ioOut) const
virtual bool AutoXMLDataProcess (MushcoreXMLIStream &ioIn, const std::string &inTagStr)
virtual void AutoXMLPrint (MushcoreXMLOStream &ioOut) const

Static Public Member Functions

static MushcoreVirtualObjectAutoVirtualFactory (void)

Detailed Description

Definition at line 41 of file MushMeshLibraryPrism.h.


Constructor & Destructor Documentation

MushMeshLibraryPrism::MushMeshLibraryPrism (  )  [inline]

Definition at line 44 of file MushMeshLibraryPrism.h.

00044 : m_order(0) {}


Member Function Documentation

MushcoreVirtualObject * MushMeshLibraryPrism::AutoClone ( void   )  const [virtual]

Reimplemented from MushMesh4Base.

Definition at line 54 of file MushMeshLibraryPrism.cpp.

00055 {
00056     return new MushMeshLibraryPrism(*this);
00057 }

MushcoreVirtualObject * MushMeshLibraryPrism::AutoCreate ( void   )  const [virtual]

Reimplemented from MushMesh4Base.

Definition at line 59 of file MushMeshLibraryPrism.cpp.

00060 {
00061     return new MushMeshLibraryPrism;
00062 }

const char * MushMeshLibraryPrism::AutoName ( void   )  const [virtual]

Reimplemented from MushMesh4Base.

Definition at line 49 of file MushMeshLibraryPrism.cpp.

00050 {
00051     return "MushMeshLibraryPrism";
00052 }

void MushMeshLibraryPrism::AutoPrint ( std::ostream &  ioOut  )  const [virtual]

Reimplemented from MushMesh4Base.

Definition at line 77 of file MushMeshLibraryPrism.cpp.

00078 {
00079     ioOut << "[";
00080     MushMesh4Base::AutoPrint(ioOut);
00081     ioOut << "order=" << m_order;
00082     ioOut << "]";
00083 }

MushcoreVirtualObject * MushMeshLibraryPrism::AutoVirtualFactory ( void   )  [static]

Reimplemented from MushMesh4Base.

Definition at line 64 of file MushMeshLibraryPrism.cpp.

00065 {
00066     return new MushMeshLibraryPrism;
00067 }

bool MushMeshLibraryPrism::AutoXMLDataProcess ( MushcoreXMLIStream ioIn,
const std::string &  inTagStr 
) [virtual]

Reimplemented from MushMesh4Base.

Definition at line 85 of file MushMeshLibraryPrism.cpp.

00086 {
00087     if (inTagStr == "obj")
00088     {
00089         AutoInputPrologue(ioIn);
00090         ioIn >> *this;
00091         AutoInputEpilogue(ioIn);
00092     }
00093     else if (inTagStr == "order")
00094     {
00095         ioIn >> m_order;
00096     }
00097     else if (MushMesh4Base::AutoXMLDataProcess(ioIn, inTagStr))
00098     {
00099         // Tag consumed by base class
00100     }
00101     else 
00102     {
00103         return false;
00104     }
00105     return true;
00106 }

void MushMeshLibraryPrism::AutoXMLPrint ( MushcoreXMLOStream ioOut  )  const [virtual]

Reimplemented from MushMesh4Base.

Definition at line 108 of file MushMeshLibraryPrism.cpp.

00109 {
00110     MushMesh4Base::AutoXMLPrint(ioOut);
00111     ioOut.TagSet("order");
00112     ioOut << m_order;
00113 }

void MushMeshLibraryPrism::Make ( MushMesh4Mesh ioMesh  )  const [virtual]

Reimplemented from MushMesh4Base.

Definition at line 38 of file MushMeshLibraryPrism.cpp.

00039 {
00040         if (m_order < 3)
00041         {
00042                 throw MushcoreRequestFail("Bad order parameter for prism creation");    
00043         }
00044         MushMeshLibraryBase::Sgl().PolygonPrismCreate(ioMesh, t4Val(1,1,1,1), m_order);
00045 }

const Mushware::U32& MushMeshLibraryPrism::Order ( void   )  const [inline]

Definition at line 52 of file MushMeshLibraryPrism.h.

00052 { return m_order; }

void MushMeshLibraryPrism::OrderSet ( const Mushware::U32 inValue  )  [inline]

Definition at line 53 of file MushMeshLibraryPrism.h.

00053 { m_order=inValue; }


The documentation for this class was generated from the following files:
Generated on Thu Aug 3 18:47:06 2006 for core-app by  doxygen 1.4.7