|
ParaView
|
#include <vtkMaterialInterfaceIdList.h>
Public Member Functions | |
| vtkMaterialInterfaceIdList () | |
| ~vtkMaterialInterfaceIdList () | |
| void | Initialize (std::vector< int > ids, bool preSorted=false) |
| void | Initialize () |
| int | PushId () |
| int | PushUniqueId () |
| void | Clear () |
| int | GetLocalId (int globalId) |
Class that facilitates efficient operation on lists fragment ids. This class is introduced to deal with the fact that local to global id search is a constant time operation, while its inverse glooabl to local id search is not.
Definition at line 30 of file vtkMaterialInterfaceIdList.h.
| vtkMaterialInterfaceIdList::vtkMaterialInterfaceIdList | ( | ) | [inline] |
Definition at line 33 of file vtkMaterialInterfaceIdList.h.
| vtkMaterialInterfaceIdList::~vtkMaterialInterfaceIdList | ( | ) | [inline] |
Definition at line 37 of file vtkMaterialInterfaceIdList.h.
| void vtkMaterialInterfaceIdList::Clear | ( | void | ) | [inline] |
Return the container to an empty state.
Definition at line 43 of file vtkMaterialInterfaceIdList.h.
| void vtkMaterialInterfaceIdList::Initialize | ( | std::vector< int > | ids, |
| bool | preSorted = false |
||
| ) |
Initialize the container with a list of id's these must be in ascending order.
| void vtkMaterialInterfaceIdList::Initialize | ( | ) |
Initialize the container from the ids that have been pushed. This must be done before querrying.
| int vtkMaterialInterfaceIdList::PushId | ( | ) |
Add a fragment id to the list. Return its index.
| int vtkMaterialInterfaceIdList::PushUniqueId | ( | ) |
Add a fragment id to the list, if it is unique. Return its index or -1 to indicate its not unique.
Given a global id, get the local id, or -1 if the global id is not in the list.
1.7.5.1