Back to index

salome-paravis  6.5.0
Public Member Functions | Static Public Attributes | Static Private Attributes
presentations.EntityType Class Reference

List of all members.

Public Member Functions

def get_name
def get_type
def get_pvtype

Static Public Attributes

int NODE = 0
int CELL = 1

Static Private Attributes

dictionary _type2name
dictionary _name2type
dictionary _type2pvtype

Detailed Description

Entity types.

Definition at line 90 of file presentations.py.


Member Function Documentation

def presentations.EntityType.get_name (   cls,
  type 
)
Return entity name (used in full group names) by its type.

Definition at line 107 of file presentations.py.

00107 
00108     def get_name(cls, type):
00109         """Return entity name (used in full group names) by its type."""
00110         return cls._type2name[type]

def presentations.EntityType.get_pvtype (   cls,
  type 
)
Return entity type from ['CELL_DATA', 'POINT_DATA']

Definition at line 117 of file presentations.py.

00117 
00118     def get_pvtype(cls, type):
00119         """Return entity type from ['CELL_DATA', 'POINT_DATA']"""
00120         return cls._type2pvtype[type]
00121 

def presentations.EntityType.get_type (   cls,
  name 
)
Return entity type by its name (used in full group names).

Definition at line 112 of file presentations.py.

00112 
00113     def get_type(cls, name):
00114         """Return entity type by its name (used in full group names)."""
00115         return cls._name2type[name]


Member Data Documentation

dictionary presentations.EntityType._name2type [static, private]
Initial value:
{'OnPoint': NODE,
                  'OnCell': CELL}

Definition at line 100 of file presentations.py.

dictionary presentations.EntityType._type2name [static, private]
Initial value:
{NODE: 'OnPoint',
                  CELL: 'OnCell'}

Definition at line 97 of file presentations.py.

dictionary presentations.EntityType._type2pvtype [static, private]
Initial value:
{NODE: 'POINT_DATA',
                    CELL: 'CELL_DATA'}

Definition at line 103 of file presentations.py.

Definition at line 95 of file presentations.py.

Definition at line 94 of file presentations.py.


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