xmsstamper  1.0
xms::XmStamperIo Class Reference

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< XmStampCrossSectionm_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< TrTinm_bathymetry
 underlying bathymetry
 
BSHP< TrTinm_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.
 

Detailed Description

Stamping inputs/outputs class.

Definition at line 171 of file XmStamperIo.h.

Member Function Documentation

◆ ReadFromFile()

bool xms::XmStamperIo::ReadFromFile ( std::ifstream &  a_file)

Reads the XmStamperIo class information from a file.

Parameters
[in]a_fileThe input file.
Returns
true if file read is successful. false if errors encountered.

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.

◆ SetPrecisionForOutput()

void xms::XmStamperIo::SetPrecisionForOutput ( int  a_precision)

Sets the precision for stamper output.

Parameters
[in]a_precisionThe number of digits of precision for stamper output

Definition at line 701 of file XmStamperIo.cpp.

◆ WriteToFile()

void xms::XmStamperIo::WriteToFile ( std::ofstream &  a_file,
const std::string &  a_cardName 
) const

Writes the XmStamperIo class information to a file.

Parameters
[in]a_fileThe output file.
[in]a_cardNameThe 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().

Member Data Documentation

◆ m_centerLine

◆ m_outTin


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