VISU_MeshAct
::GetMemorySize()
{
+ vtkDataSet* aDataSet;
unsigned long int aSize = Superclass::GetMemorySize();
{
- vtkDataSet* aDataSet = mySurfaceActor->GetMapper()->GetInput();
+ aDataSet = mySurfaceActor->GetInput();
aSize += aDataSet->GetActualMemorySize() * 1024;
+
+ aDataSet = mySurfaceActor->GetMapper()->GetInput();
+ aSize += aDataSet->GetActualMemorySize() * 1024 * 2;
}
{
- vtkDataSet* aDataSet = myEdgeActor->GetMapper()->GetInput();
+ aDataSet = myEdgeActor->GetInput();
aSize += aDataSet->GetActualMemorySize() * 1024;
+
+ aDataSet = myEdgeActor->GetMapper()->GetInput();
+ aSize += aDataSet->GetActualMemorySize() * 1024 * 2;
}
{
- vtkDataSet* aDataSet = myNodeActor->GetMapper()->GetInput();
+ aDataSet = myNodeActor->GetInput();
aSize += aDataSet->GetActualMemorySize() * 1024;
+
+ aDataSet = myNodeActor->GetMapper()->GetInput();
+ aSize += aDataSet->GetActualMemorySize() * 1024 * 2;
}
return aSize;
}
}
vtkLODActor::SetMapper(theMapper);
}
+
+
+//----------------------------------------------------------------------------
+unsigned long int
+VISU_VectorsAct
+::GetMemorySize()
+{
+ vtkDataSet* aDataSet;
+ unsigned long int aSize = Superclass::GetMemorySize();
+
+ aSize += GetPipeLine()->GetMemorySize();
+
+ return aSize;
+}
void
SetMapper(vtkMapper* theMapper);
+ //! Gets memory size used by the instance (bytes).
+ virtual
+ unsigned long int
+ GetMemorySize();
+
protected:
VISU_VectorsAct();
~VISU_VectorsAct();
VISU_DeformedShapePL
::GetMemorySize()
{
- vtkDataSet* aDataSet = myWarpVector->GetOutput();
- unsigned long int aSize = aDataSet->GetActualMemorySize() * 1024;
+ unsigned long int aSize = 0;
+ if(vtkDataSet* aDataSet = myWarpVector->GetInput())
+ if(vtkDataSet* aDataSet = myWarpVector->GetOutput())
+ aSize += aDataSet->GetActualMemorySize() * 1024;
- if(myCellDataToPointData->GetInput()){
- aDataSet = myCellDataToPointData->GetOutput();
- aSize += aDataSet->GetActualMemorySize() * 1024;
- }
+ if(myCellDataToPointData->GetInput())
+ if(vtkDataSet* aDataSet = myCellDataToPointData->GetOutput())
+ aSize += aDataSet->GetActualMemorySize() * 1024;
aSize += Superclass::GetMemorySize();
VISU_ScalarMapPL::Update();
}
+//----------------------------------------------------------------------------
+unsigned long int
+VISU_IsoSurfacesPL
+::GetMemorySize()
+{
+ vtkDataSet* aDataSet = myContourFilter->GetOutput();
+ unsigned long int aSize = aDataSet->GetActualMemorySize() * 1024;
+
+ if(myCellDataToPointData->GetInput()){
+ aDataSet = myCellDataToPointData->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+ }
+
+ aSize += Superclass::GetMemorySize();
+
+ return aSize;
+}
+
+
+//----------------------------------------------------------------------------
void
VISU_IsoSurfacesPL
::SetMapScale(vtkFloatingPointType theMapScale)
void
Update();
+ //! Gets memory size used by the instance (bytes).
+ virtual
+ unsigned long int
+ GetMemorySize();
+
virtual
THook*
DoHook();
VISU_PipeLine::Update();
}
+//----------------------------------------------------------------------------
+unsigned long int
+VISU_ScalarMapOnDeformedShapePL
+::GetMemorySize()
+{
+ vtkDataSet* aDataSet = myDeformVectors->GetOutput();
+ unsigned long int aSize = aDataSet->GetActualMemorySize() * 1024;
+
+ aDataSet = myExtractorScalars->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+
+ aDataSet = myMergeFilter->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+
+ if(myCellDataToPointData->GetInput()){
+ aDataSet = myCellDataToPointData->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+ }
+
+ aSize += Superclass::GetMemorySize();
+
+ return aSize;
+}
+
+
+//----------------------------------------------------------------------------
/*!
* Update scalars method.
* Put scalars to merge filter.
void
Update();
+ //! Gets memory size used by the instance (bytes).
+ virtual
+ unsigned long int
+ GetMemorySize();
+
//! Update scalars.
void
UpdateScalars();
VISU_ScalarMapPL::Update();
}
+//----------------------------------------------------------------------------
+unsigned long int
+VISU_StreamLinesPL
+::GetMemorySize()
+{
+ vtkDataSet* aDataSet = myStream->GetOutput();
+ unsigned long int aSize = aDataSet->GetActualMemorySize() * 1024;
+
+ aDataSet = myGeomFilter->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+
+ if(myCellDataToPointData->GetInput()){
+ aDataSet = myCellDataToPointData->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+ }
+
+ aSize += Superclass::GetMemorySize();
+
+ return aSize;
+}
+
+
+//----------------------------------------------------------------------------
void
VISU_StreamLinesPL
::SetMapScale(vtkFloatingPointType theMapScale)
void
Update();
+ //! Gets memory size used by the instance (bytes).
+ virtual
+ unsigned long int
+ GetMemorySize();
+
virtual
void
SetMapScale(vtkFloatingPointType theMapScale = 1.0);
}
+//----------------------------------------------------------------------------
+unsigned long int
+VISU_VectorsPL
+::GetMemorySize()
+{
+ vtkDataSet* aDataSet = myBaseGlyph->GetOutput();
+ unsigned long int aSize = aDataSet->GetActualMemorySize() * 1024;
+
+ aDataSet = myTransformedGlyph->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+
+ aDataSet = myCenters->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+
+ if(myCellDataToPointData->GetInput()){
+ aDataSet = myCellDataToPointData->GetOutput();
+ aSize += aDataSet->GetActualMemorySize() * 1024;
+ }
+
+ aSize += Superclass::GetMemorySize();
+
+ return aSize;
+}
+
+
+//----------------------------------------------------------------------------
void
VISU_VectorsPL
::SetMapScale(vtkFloatingPointType theMapScale)
void
Update();
+ //! Gets memory size used by the instance (bytes).
+ virtual
+ unsigned long int
+ GetMemorySize();
+
vtkDataSet*
GetOutput();