TexGen
Namespaces | Functions
Misc.cpp File Reference
#include "PrecompiledHeaders.h"
#include "Misc.h"
#include "../units/units.h"
Include dependency graph for Misc.cpp:

Go to the source code of this file.

Namespaces

namespace  TexGen
 Namespace containing a series of customised math operations not found in the standard c++ library.
 

Functions

COLOR TexGen::GetIndexedColor (int iIndex)
 
void TexGen::CopyToRange (vector< XYZ > &Offsets, XYZ Vector, int iLowerLimit, int iUpperLimit)
 
double TexGen::ConvertUnits (double dValue, std::string SourceUnits, std::string TargetUnits)
 
bool TexGen::CompatibleUnits (std::string SourceUnits, std::string TargetUnits, std::string *pErrorMessage)
 
std::string TexGen::ReduceUnits (std::string Units)
 
void TexGen::AddNewUnits (std::string NewUnit, std::string BaseUnits)
 
std::string TexGen::StripPath (std::string Filename)
 Strip the path from the filename (e.g. "c:\folder\file.ext -> file.ext") More...
 
void TexGen::AddExtensionIfMissing (std::string &Filename, std::string Extension)
 Adds an extension to the filename if it is missing otherwise do nothing (e.g. picture -> picture.png) More...
 
std::string TexGen::RemoveExtension (std::string &Filename, std::string Extension)
 Strip the extension from the filename. More...
 
std::string TexGen::ReplaceFilenameSpaces (std::string Filename)
 Replaces spaces in filename with underscore. More...
 
void TexGen::WriteOrientationsHeader (std::ostream &Output)
 Write orientations header for ABAQUS .ori files. More...
 
void TexGen::WriteElementsHeader (std::ostream &Output)
 Write elements header for ABAQUS .eld files. More...