::GetMemorySize()
{
static int INCMEMORY = 4;
- vtkDataSet* aDataSet = GetPipeLine()->GetInput();
- CORBA::Float aSize = aDataSet->GetActualMemorySize() * (INCMEMORY - 1);
+ vtkDataSet* aDataSet = GetPipeLine()->GetMapper()->GetInput();
+ CORBA::Float aSize = aDataSet->GetActualMemorySize() * INCMEMORY * 1024.0;
+ //cout<<"Prs3d_i::GetMemorySize - "<<this<<"; aDataSet = "<<aSize / (1024.0 * 1024.0)<<endl;
int anEnd = myActorCollection->GetNumberOfItems();
for(int anId = 0; anId < anEnd; anId++)
if(vtkObject* anObject = myActorCollection->GetItemAsObject(anId))
- if(VISU_Actor* anActor = dynamic_cast<VISU_Actor*>(anObject))
+ if(VISU_Actor* anActor = dynamic_cast<VISU_Actor*>(anObject)){
aSize += anActor->GetMemorySize();
-
+ //cout<<"Prs3d_i::GetMemorySize - "<<this<<"; anActor = "<<anActor->GetMemorySize() / (1024.0 * 1024.0)<<endl;
+ }
+
+ //cout<<"Prs3d_i::GetMemorySize - "<<this<<"; aSize = "<<aSize / (1024.0 * 1024.0)<<endl;
return aSize / (1024.0 * 1024.0);
}