xmsstamper
1.0
|
Stamping inputs/outputs class. More...
#include <XmStamperIo.h>
Public Member Functions | |
XmStamperIo () | |
Constructor. | |
bool | ReadFromFile (std::ifstream &a_file) |
Reads the XmStamperIo class information from a file. More... | |
void | WriteToFile (std::ofstream &a_file, const std::string &a_cardName) const |
Writes the XmStamperIo class information to a file. More... | |
void | SetPrecisionForOutput (int a_precision) |
Sets the precision for stamper output. More... | |
Public Attributes | |
VecPt3d | m_centerLine |
int | m_stampingType |
Stamping type 0 - Cut, 1 - Fill, 2 - Both. | |
std::vector< XmStampCrossSection > | m_cs |
cross sections along the polyLine | |
XmStamperEndCap | m_firstEndCap |
end cap at beginnig of polyline | |
XmStamperEndCap | m_lastEndCap |
end cap at end of polyline | |
BSHP< TrTin > | m_bathymetry |
underlying bathymetry | |
BSHP< TrTin > | m_outTin |
VecInt2d | m_outBreakLines |
break lines that are honored in the TIN | |
XmStampRaster | m_raster |
Input/output raster to stamp the resulting elevations onto this raster. | |
Stamping inputs/outputs class.
Definition at line 171 of file XmStamperIo.h.
bool xms::XmStamperIo::ReadFromFile | ( | std::ifstream & | a_file | ) |
Reads the XmStamperIo class information from a file.
[in] | a_file | The input file. |
Definition at line 640 of file XmStamperIo.cpp.
References m_bathymetry, m_centerLine, m_cs, m_firstEndCap, m_lastEndCap, m_outBreakLines, m_outTin, m_raster, m_stampingType, xms::TrTin::New(), xms::XmStampRaster::ReadFromFile(), xms::XmStamperEndCap::ReadFromFile(), stEqualNoCase(), XM_ASSERT, and XM_ENSURE_TRUE.
void xms::XmStamperIo::SetPrecisionForOutput | ( | int | a_precision | ) |
Sets the precision for stamper output.
[in] | a_precision | The number of digits of precision for stamper output |
Definition at line 701 of file XmStamperIo.cpp.
void xms::XmStamperIo::WriteToFile | ( | std::ofstream & | a_file, |
const std::string & | a_cardName | ||
) | const |
Writes the XmStamperIo class information to a file.
[in] | a_file | The output file. |
[in] | a_cardName | The card name to be written to the output file. |
Definition at line 611 of file XmStamperIo.cpp.
References m_bathymetry, m_centerLine, m_cs, m_firstEndCap, m_lastEndCap, m_outBreakLines, m_outTin, m_raster, m_stampingType, xms::XmStampRaster::WriteToFile(), xms::XmStamperEndCap::WriteToFile(), and XM_ENSURE_TRUE.
Referenced by xms::XmStamperImpl::WriteInputsForDebug().
VecPt3d xms::XmStamperIo::m_centerLine |
Input Required. Center line for the feature stamp
Definition at line 189 of file XmStamperIo.h.
Referenced by xms::XmStampEndCapImpl::AdjustCrossSection(), xms::XmStamperImpl::Convert3dPtsToVec(), xms::XmStamperImpl::ConvertCrossSectionsTo3d(), xms::XmBathymetryIntersectorImpl::DecomposeCenterLine(), xms::XmSlopedAbutmentUtilImpl::DoConvertTo3d(), xms::XmGuideBankUtilImpl::DoConvertTo3d(), xms::XmGuideBankUtilImpl::GuideBankCenterLine(), xms::XmStamperImpl::InputErrorsFound(), xms::XmStampInterpCrossSectionImpl::InterpMissingCrossSections(), xms::XmBathymetryIntersectorImpl::IntersectCenterLine(), xms::XmBathymetryIntersectorImpl::IntersectGuideBank(), xms::XmBathymetryIntersectorImpl::IntersectSlopedAbutment(), xms::XmStamperImpl::IntersectWithTin(), ReadFromFile(), xms::XmSlopedAbutmentUtilImpl::Setup(), XmStampInterpCrossSectionUnitTests::test0(), XmStampInterpCrossSectionUnitTests::test1(), TutStampingUnitTests::test_RealDataStamping(), TutStampingUnitTests::test_StampCutEmbankment(), TutStampingUnitTests::test_StampFillEmbankment(), TutStampingUnitTests::test_StampGuidebank(), TutStampingUnitTests::test_StampIntersectBathymetry(), TutStampingUnitTests::test_StampSlopedAbutment(), TutStampingUnitTests::test_StampWingWall(), XmStampInterpCrossSectionUnitTests::testCrossSectionTutorial(), XmBathymetryIntersectorUnitTests::testDescomposeCenterLine(), XmBathymetryIntersectorUnitTests::testIntersectCenterLine(), and WriteToFile().
Output TIN created by the stamp operation
Definition at line 203 of file XmStamperIo.h.
Referenced by xms::XmStamperImpl::AppendTinAndBreakLines(), xms::XmStamperImpl::CreateBathymetryIntersector(), xms::XmStamperImpl::CreateOutputs(), xms::XmStamperImpl::DoStamp(), ReadFromFile(), XmStampIntermediateTests::test_SelfIntersect(), TutStampingUnitTests::test_StampCutEmbankment(), TutStampingUnitTests::test_StampFillEmbankment(), TutStampingUnitTests::test_StampGuidebank(), TutStampingUnitTests::test_StampIntersectBathymetry(), TutStampingUnitTests::test_StampSlopedAbutment(), TutStampingUnitTests::test_StampWingWall(), and WriteToFile().