Back to index

salome-gui  6.5.0
Defines | Functions
SVTK_Actor.cxx File Reference
#include "SVTK_Actor.h"
#include "SALOME_Actor.h"
#include "SALOME_InteractiveObject.hxx"
#include <vtkObjectFactory.h>
#include <vtkUnstructuredGrid.h>
#include <vtkDataSetMapper.h>
#include <vtkRenderer.h>
#include <vtkCell.h>
#include <vtkPolyData.h>
#include "Utils_SALOME_Exception.hxx"
#include "utilities.h"

Go to the source code of this file.

Defines

#define VTK_XVERSION   (VTK_MAJOR_VERSION*10000+VTK_MINOR_VERSION*100+VTK_BUILD_VERSION)

Functions

static void CopyPoints (vtkUnstructuredGrid *theGrid, vtkDataSet *theSourceDataSet)
 vtkStandardNewMacro (SVTK_Actor)

Define Documentation

#define VTK_XVERSION   (VTK_MAJOR_VERSION*10000+VTK_MINOR_VERSION*100+VTK_BUILD_VERSION)

Definition at line 35 of file SVTK_Actor.cxx.


Function Documentation

static void CopyPoints ( vtkUnstructuredGrid *  theGrid,
vtkDataSet *  theSourceDataSet 
) [static]

Definition at line 46 of file SVTK_Actor.cxx.

{
  vtkPoints *aPoints = vtkPoints::New();
  vtkIdType iEnd = theSourceDataSet->GetNumberOfPoints();
  aPoints->SetNumberOfPoints(iEnd);
  for(vtkIdType i = 0; i < iEnd; i++){
    aPoints->SetPoint(i,theSourceDataSet->GetPoint(i));
  }
  theGrid->SetPoints(aPoints);
  aPoints->Delete();
}
vtkStandardNewMacro ( SVTK_Actor  )