From 5a12d554f043b5e96a333c2b7d6dd055713f70d7 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 29 Nov 2006 11:34:55 +0000 Subject: [PATCH] To improve memory size calculation --- src/VISU_I/VISU_Prs3d_i.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index 1c84445e..1ee0f33d 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -602,15 +602,19 @@ VISU::Prs3d_i ::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 - "<