Public Member Functions | |
MeshVRML (const MeshKernel &rclM, const Base::Matrix4D &, VRMLInfo *pclVRMLInfo) | |
MeshVRML (const MeshKernel &rclM, const Base::Matrix4D &) | |
bool | Save (std::ostream &rstrOut, const std::vector< App::Color > &raclColor, const App::Material &rclMat, bool bColorPerVertex=true) const |
bool | Save (std::ostream &rstrOut, const App::Material &rclMat) const |
~MeshVRML (void) | |
Protected Member Functions | |
void | WriteVRMLAnnotations (std::ostream &rstrOut) const |
void | WriteVRMLHeaderInfo (std::ostream &rstrOut) const |
void | WriteVRMLViewpoints (std::ostream &rstrOut) const |
Protected Attributes | |
VRMLInfo * | _pclVRMLInfo |
const MeshKernel & | _rclMesh |
Base::Matrix4D | _transform |
Definition at line 1872 of file MeshIO.cpp.
MeshVRML::MeshVRML | ( | const MeshKernel & | rclM, | |
const Base::Matrix4D & | trf | |||
) |
Definition at line 1899 of file MeshIO.cpp.
MeshVRML::MeshVRML | ( | const MeshKernel & | rclM, | |
const Base::Matrix4D & | trf, | |||
VRMLInfo * | pclVRMLInfo | |||
) |
Definition at line 1904 of file MeshIO.cpp.
MeshVRML::~MeshVRML | ( | void | ) | [inline] |
Definition at line 1877 of file MeshIO.cpp.
bool MeshVRML::Save | ( | std::ostream & | rstrOut, | |
const std::vector< App::Color > & | raclColor, | |||
const App::Material & | rclMat, | |||
bool | bColorPerVertex = true | |||
) | const |
Definition at line 1909 of file MeshIO.cpp.
References MeshCore::MeshFacet::_aulPoints, MeshCore::VRMLInfo::_clColor, _pclVRMLInfo, _rclMesh, _transform, App::Color::b, FemExample::b, Base::BoundBox3< _Precision >::CalcCenter(), Base::BoundBox3< _Precision >::CalcDiagonalLength(), Convert_Camera_Model(), MeshCore::MeshKernel::CountFacets(), MeshCore::MeshKernel::CountPoints(), App::Material::diffuseColor, App::Material::emissiveColor, App::Color::g, MeshCore::MeshKernel::GetBoundBox(), MeshCore::MeshFacetIterator::GetIndices(), MeshCore::MeshFacetIterator::Init(), MeshCore::MeshPointIterator::Init(), k, Base::BoundBox3< _Precision >::LengthX(), Base::BoundBox3< _Precision >::LengthY(), Base::BoundBox3< _Precision >::LengthZ(), MeshCore::MeshFacetIterator::More(), MeshCore::MeshPointIterator::More(), MeshCore::MeshFacetIterator::Next(), MeshCore::MeshPointIterator::Next(), RobotExample::pos, App::Color::r, App::Material::shininess, App::Material::specularColor, MeshCore::MeshFacetIterator::Transform(), MeshCore::MeshPointIterator::Transform(), App::Material::transparency, WriteVRMLAnnotations(), WriteVRMLHeaderInfo(), WriteVRMLViewpoints(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
bool MeshVRML::Save | ( | std::ostream & | rstrOut, | |
const App::Material & | rclMat | |||
) | const |
Definition at line 2391 of file MeshIO.cpp.
void MeshVRML::WriteVRMLAnnotations | ( | std::ostream & | rstrOut | ) | const [protected] |
Definition at line 2242 of file MeshIO.cpp.
References MeshCore::VRMLInfo::_bSavePicture, MeshCore::VRMLInfo::_clAnnotation, MeshCore::VRMLInfo::_clColor, MeshCore::VRMLInfo::_clPicFileName, _pclVRMLInfo, App::Color::b, FemExample::b, App::Color::g, and App::Color::r.
Referenced by Save().
void MeshVRML::WriteVRMLHeaderInfo | ( | std::ostream & | rstrOut | ) | const [protected] |
Definition at line 2225 of file MeshIO.cpp.
References MeshCore::VRMLInfo::_clAuthor, MeshCore::VRMLInfo::_clComments, MeshCore::VRMLInfo::_clCompany, MeshCore::VRMLInfo::_clDate, and _pclVRMLInfo.
Referenced by Save().
void MeshVRML::WriteVRMLViewpoints | ( | std::ostream & | rstrOut | ) | const [protected] |
Definition at line 2334 of file MeshIO.cpp.
References MeshCore::VRMLInfo::_clViewpoints, _pclVRMLInfo, _rclMesh, Base::BoundBox3< _Precision >::CalcCenter(), Convert_Camera_Model(), MeshCore::MeshKernel::GetBoundBox(), Base::Vector3< _Precision >::Normalize(), draftTools::p, RobotExample::pos, RobotExample::t, RobotExample::w, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by Save().
VRMLInfo* MeshVRML::_pclVRMLInfo [protected] |
Definition at line 1890 of file MeshIO.cpp.
Referenced by Save(), WriteVRMLAnnotations(), WriteVRMLHeaderInfo(), and WriteVRMLViewpoints().
const MeshKernel& MeshVRML::_rclMesh [protected] |
Definition at line 1888 of file MeshIO.cpp.
Referenced by Save(), and WriteVRMLViewpoints().
Base::Matrix4D MeshVRML::_transform [protected] |
Definition at line 1889 of file MeshIO.cpp.
Referenced by Save().