Back to index

salome-paravis  6.5.0
Public Member Functions | Static Public Member Functions | Protected Attributes
PARAVIS::PARAVIS_Base_i Class Reference

Base implementation for all container objects for Paravis serevrmanager API classes. More...

#include <PARAVIS_Gen_i.hh>

List of all members.

Public Member Functions

 PARAVIS_Base_i ()
 Constructor.
virtual ~PARAVIS_Base_i ()
 Destructor.
virtual void Init (::vtkObjectBase *base)
 Initialises internal pointer on existing Paraview class instance.
virtual ::vtkObjectBase * GetNew ()
virtual ::vtkObjectBase * getVTKObject ()
 Returns pointer on internal Paraview class instance.
virtual CORBA::Boolean IsSame (PARAVIS_Base_ptr theOther)
 Compares two container objects comparing of their internal pointers.

Static Public Member Functions

::vtkObjectBase * getVTKObject (PARAVIS_Base_ptr theBase)
 The same as previous in static context.

Protected Attributes

vtkSmartPointer< ::vtkObjectBase > mySmartPointer
 Pointer on wrapped class.

Detailed Description

Base implementation for all container objects for Paravis serevrmanager API classes.

Definition at line 59 of file PARAVIS_Gen_i.hh.


Constructor & Destructor Documentation

Constructor.

Definition at line 63 of file PARAVIS_Gen_i.hh.

{};

Destructor.

Definition at line 108 of file PARAVIS_Gen_i.cc.

                                  {
    if(mySmartPointer != NULL) mySmartPointer->Delete();
  }

Member Function Documentation

virtual ::vtkObjectBase* PARAVIS::PARAVIS_Base_i::GetNew ( ) [inline]

Definition at line 71 of file PARAVIS_Gen_i.hh.

{ return NULL; }

Here is the caller graph for this function:

virtual ::vtkObjectBase* PARAVIS::PARAVIS_Base_i::getVTKObject ( ) [inline]

Returns pointer on internal Paraview class instance.

Definition at line 74 of file PARAVIS_Gen_i.hh.

    { if (mySmartPointer == NULL)
        mySmartPointer = GetNew();
      return mySmartPointer.GetPointer(); 
    }

Here is the call graph for this function:

Here is the caller graph for this function:

vtkObjectBase * PARAVIS::PARAVIS_Base_i::getVTKObject ( PARAVIS_Base_ptr  theBase) [static]

The same as previous in static context.

Definition at line 117 of file PARAVIS_Gen_i.cc.

                                                                      {
    PARAVIS_Base_i* aBase = GET_SERVANT(theBase);
    return (aBase != NULL)? aBase->getVTKObject() : NULL;
  }

Here is the call graph for this function:

void PARAVIS::PARAVIS_Base_i::Init ( ::vtkObjectBase *  base) [virtual]

Initialises internal pointer on existing Paraview class instance.

Definition at line 112 of file PARAVIS_Gen_i.cc.

                                               {
    if (mySmartPointer != NULL) mySmartPointer->Delete();
    mySmartPointer = base;
  }
CORBA::Boolean PARAVIS::PARAVIS_Base_i::IsSame ( PARAVIS_Base_ptr  theOther) [virtual]

Compares two container objects comparing of their internal pointers.

Definition at line 122 of file PARAVIS_Gen_i.cc.

  {
    PARAVIS_Base_i* aBase = GET_SERVANT(theOther);
    if (aBase == NULL) 
      return false;
    return mySmartPointer.GetPointer() == aBase->getVTKObject();
  }

Here is the call graph for this function:


Member Data Documentation

vtkSmartPointer< ::vtkObjectBase> PARAVIS::PARAVIS_Base_i::mySmartPointer [protected]

Pointer on wrapped class.

Definition at line 89 of file PARAVIS_Gen_i.hh.


The documentation for this class was generated from the following files: