Structural deformable models
Macros | Functions
MStruct.cpp File Reference
#include <fstream>
#include <set>
#include <algorithm>
#include <iterator>
#include <iomanip>
#include <fxkeys.h>
#include "Brain.h"
#include "StructTable.h"
#include "MStruct.h"
#include "DMatrix.h"
#include "DMatrixUtil.h"
#include "DMatrixLinAlg.h"
#include "utils.h"
Include dependency graph for MStruct.cpp:

Go to the source code of this file.

Macros

#define SUBSTRUCT_RATEWEIGHT   1.0f
 
#define STRUCT_SHAPEWEIGHT   0.1f
 
#define SUBSTRUCT_RATETH   0.0f
 
#define SHAPEADAPTTIMESTEP   0.01
 

Functions

ostream & operator<< (ostream &os, const SubStructure &ss)
 

Macro Definition Documentation

#define SHAPEADAPTTIMESTEP   0.01
#define STRUCT_SHAPEWEIGHT   0.1f

Definition at line 19 of file MStruct.cpp.

Referenced by MStructure::read(), and MStructure::write().

#define SUBSTRUCT_RATETH   0.0f

Definition at line 20 of file MStruct.cpp.

Referenced by SubStructure::clear().

#define SUBSTRUCT_RATEWEIGHT   1.0f

Definition at line 18 of file MStruct.cpp.

Referenced by SubStructure::clear(), and operator<<().

Function Documentation

ostream& operator<< ( std::ostream &  os,
const SubStructure ss 
)

Definition at line 864 of file MStruct.cpp.

References SubStructure::m_Mode, SubStructure::m_Pivot, SubStructure::m_Polar, SubStructure::m_RateWeight, SubStructure::m_SubStructName, SubStructure::m_Transform, SubStructure::MODE_NONE, SubStructure::MODE_NOSPAWN, SubStructure::MODE_SHOWSTATS, and SUBSTRUCT_RATEWEIGHT.

865 {
866  os << " substruct " << ss.m_SubStructName << endl;
867  os << " transform " << ss.m_Transform << endl;
868  if(ss.m_Pivot>=0)
869  os << " pivot " << ss.m_Pivot+1 << endl;
870  if(ss.m_Polar) os << " polar" << endl;
872  os << " rateweight " << ss.m_RateWeight << endl;
873  if(ss.m_Mode != SubStructure::MODE_NONE) {
874  os << " mode"
875  << (ss.m_Mode&SubStructure::MODE_NOSPAWN ? " nospawn" : "")
876  << (ss.m_Mode&SubStructure::MODE_SHOWSTATS ? " showstats" : "")
877  << endl;
878  }
879  os << " end # of substruct" << endl;
880  return os;
881 }
std::string m_SubStructName
Definition: MStruct.h:41
dword m_Mode
Definition: MStruct.h:48
float m_RateWeight
Definition: MStruct.h:47
bool m_Polar
Definition: MStruct.h:44
PropTF m_Transform
Definition: MStruct.h:42
#define SUBSTRUCT_RATEWEIGHT
Definition: MStruct.cpp:18
int m_Pivot
Definition: MStruct.h:43