22 #ifndef vtkMaterialInterfacePieceLoading_h 23 #define vtkMaterialInterfacePieceLoading_h 25 #include "vtkPVVTKExtensionsDefaultModule.h" 26 #include "vtkSystemIncludes.h" 47 this->Data[LOADING] = loading;
55 buf[ID] = this->Data[ID];
56 buf[LOADING] = this->Data[LOADING];
65 this->Data[ID] = buf[ID];
66 this->Data[LOADING] = buf[LOADING];
72 vtkIdType
GetId()
const {
return this->Data[ID]; }
73 vtkIdType
GetLoading()
const {
return this->Data[LOADING]; }
74 void SetLoading(vtkIdType loading) { this->Data[LOADING] = loading; }
81 assert(
"Update would make loading negative." && (this->Data[LOADING] + update) >= 0);
82 return this->Data[LOADING] += update;
91 return this->Data[ID] < other.Data[ID];
95 return this->Data[ID] == other.Data[ID];
101 VTKPVVTKEXTENSIONSDEFAULT_EXPORT
103 VTKPVVTKEXTENSIONSDEFAULT_EXPORT
vtkMaterialInterfacePieceLoading()
Data structure that describes a fragment's loading.
bool operator<(const vtkMaterialInterfacePieceLoading &other) const
Comparision are made by id.
vtkIdType GetId() const
Set/Get.
void Initialize(int id, vtkIdType loading)
~vtkMaterialInterfacePieceLoading()
vtkIdType UpdateLoading(vtkIdType update)
Adds to laoding and returns the updated loading.
bool operator==(const vtkMaterialInterfacePieceLoading &other) const
Comparision are made by id.
vtkIdType GetLoading() const
void SetLoading(vtkIdType loading)
VTKPVVTKEXTENSIONSDEFAULT_EXPORT void PrintPieceLoadingHistogram(std::vector< std::vector< vtkIdType > > &pla)
void Pack(vtkIdType *buf)
Place into a buffer (id, loading)
void UnPack(vtkIdType *buf)
Initialize from a buffer (id, loading)
VTKPVVTKEXTENSIONSDEFAULT_EXPORT std::ostream & operator<<(std::ostream &sout, const vtkMaterialInterfacePieceLoading &fp)