Back to index

salome-paravis  6.5.0
Defines
vtkMedSetGet.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define vtkGetObjectVectorMacro(name, type)
#define vtkSetObjectVectorMacro(name, type)
#define vtkSetAbstractObjectVectorMacro(name, type)
#define vtkCxxGetObjectVectorMacro(class, name, type)
#define vtkCxxSetObjectVectorMacro(class, name, type)
#define vtkCxxSetAbstractObjectVectorMacro(class, name, type)

Define Documentation

#define vtkCxxGetObjectVectorMacro (   class,
  name,
  type 
)
Value:
type* class::Get##name (int index)\
  {\
    if(index < 0 || index >= this->name->size())\
      return NULL;\
    return this->name->at(index);\
  }\
  vtkIdType class::GetNumberOf##name ()\
  {\
    return this->name->size();\
  }

Definition at line 43 of file vtkMedSetGet.h.

#define vtkCxxSetAbstractObjectVectorMacro (   class,
  name,
  type 
)
Value:
void  class::SetNumberOf##name (vtkIdType size)\
  {\
    if(this->name->size() == size)\
      return;\
    if(size <= 0 )\
      this->name->clear();\
    else\
      this->name->resize(size);\
    this->Modified();\
  }\
  void class::Set##name (vtkIdType index, type* obj)\
  {\
    if(index < 0 || index >= this->name->size())\
    {\
      vtkWarningMacro("has not been allocated before setting value" );\
      return;\
    }\
    if( this->name->at(index) == obj)\
      return;\
    this->name->at(index) = obj; \
    this->Modified();\
  }\
  void  class::Append##name (type* obj)\
  {\
    this->name->resize(this->name->size()+1);\
    this->name->at(this->name->size()-1) = obj;\
    this->Modified();\
  }

Definition at line 104 of file vtkMedSetGet.h.

#define vtkCxxSetObjectVectorMacro (   class,
  name,
  type 
)

Definition at line 55 of file vtkMedSetGet.h.

#define vtkGetObjectVectorMacro (   name,
  type 
)
Value:
virtual type* Get##name (int index);\
  virtual vtkIdType GetNumberOf##name ();

Definition at line 28 of file vtkMedSetGet.h.

#define vtkSetAbstractObjectVectorMacro (   name,
  type 
)
Value:
virtual void SetNumberOf##name (vtkIdType size);\
  virtual void Set##name (vtkIdType index, type* obj);\
  virtual void Append##name (type* obj);

Definition at line 38 of file vtkMedSetGet.h.

#define vtkSetObjectVectorMacro (   name,
  type 
)
Value:
virtual void  AllocateNumberOf##name (vtkIdType size);\
  virtual void  Set##name (vtkIdType index, type* obj);\
  virtual void  Append##name (type* obj);\
  virtual void  Remove##name (type* obj);

Definition at line 32 of file vtkMedSetGet.h.