moab
vtkMOABUtils Class Reference

#include <vtkMOABUtils.h>

List of all members.

Static Public Member Functions

static MBTag globalId_tag ()
static MBTag category_tag ()
static MBErrorCode init (MBInterface *impl, vtkRenderer *this_ren)
 initialize the data in this class
static void make_properties ()
 initialize some shared properties
static void destroy ()
 destroy static data in this class
static MBErrorCode make_cells (MBRange &ents, vtkUnstructuredGrid *&ug)
static MBErrorCode make_cells (MBEntityType in_type, vtkUnstructuredGrid *&ug)
 variations on make_cells above
static MBErrorCode make_cells (vtkUnstructuredGrid *&ug)
 variations on make_cells above
static MBErrorCode make_vertex_points (vtkUnstructuredGrid *&ug)
static MBErrorCode update_all_actors (MBEntityHandle this_set, vtkUnstructuredGrid *ug, const bool shaded=true, const bool tubed=false, const bool colored=false)
static MBErrorCode update_set_actors (const MBRange &update_sets, vtkUnstructuredGrid *ug, const bool shaded=true, const bool tubed=false, const bool colored=false)
static MBErrorCode setup_tube_filter (MBEntityHandle this_set, vtkExtractCells *ec, vtkMapper *&this_mapper)
 set up a tube filter on this set & ec, and assign it to a (new) mapper
static MBErrorCode get_id_list (MBEntityHandle this_set, vtkIdList *&ids)
 given a set, get the list of vtk cell ids for its entities
static MBErrorCode get_id_list (MBRange &ents, vtkIdList *&ids)
 given a range, get the list of vtk cell ids for its entities
static MBErrorCode empty_assy (vtkPropAssembly *this_assy)
 given a prop assembly, remove all its parts
static MBErrorCode get_top_contains_sets (MBRange &top_sets)
 return all top-level "contains" sets, i.e. those which aren't contained in others
static MBErrorCode get_top_parent_sets (MBRange &top_sets)
static MBErrorCode get_colors (MBEntityHandle dual_set, const int total_colors, int &global_id, double &red, double &green, double &blue)
 given a set, return the colors based on input total colors & global id
static void construct_lookup_table (const int max_scalars)
 construct the color lookup table
static MBErrorCode set_color (MBEntityHandle dual_set, vtkProperty *this_property, const int total_colors=totalColors)
 given a set and property, set the color based on total_colors & global id
static vtkProperty * get_property (MBEntityHandle this_set, const bool make_if_missing=false)
static vtkProperty * get_property (vtkActor *this_actor, const bool make_if_missing=false)
static vtkActor * get_actor (MBEntityHandle this_set, const bool make_if_missing=false)
 given a set, get the actor, making a new one if requested and necessary
static MBEntityHandle get_set (vtkProp *this_prop)
 given a prop, get the corresponding set
static MBErrorCode get_set_category_name (MBEntityHandle this_set, char *this_name)
 return a category name, if any, for this set in this_name
static void print_debug ()
 print debug information about all the actors
static void change_set_visibility (MBRange &visible_sets, MBRange &invisible_sets)
 make sets visible/invisible (property set on actors)
static void change_set_properties (MBRange &high_mbsets, MBRange &unhigh_mbsets)
 highlight or unhighlight sets
static void toggle_wireframe_shaded (MBRange &high_mbsets)
 toggle the wireframe/shaded property
static void add_geom_extractors (vtkImplicitFunction *this_func)
 put the specified extractor at the head of the pipeline, just after myUG
static void remove_geom_extractors ()
 remove the specified extractor from the head of the pipeline, just after myUG
static void update_display (vtkUnstructuredGrid *ug=NULL)
 update the display with all the mesh
static void reset_drawing_data ()
 get rid of all the vtk drawing stuff
static void assign_global_ids ()
 assign global ids, in preparation for writing mesh
static MBErrorCode create_tags ()

Static Public Attributes

static MBInterfacembImpl
 standard constructor-type function
static DualTool * dualTool
 static dualtool ptr
static vtkRenderer * myRen
 static pointer to the renderer
static vtkUnstructuredGrid * myUG
 unstructured grid at the start of the pipeline
static vtkProperty * topProperty
 the default property
static vtkProperty * highlightProperty
 the highlight property
static std::map< vtkActor
*, vtkProperty * > 
actorProperties
static std::map< vtkProp
*, MBEntityHandle
propSetMap
static vtkPropAssembly * topContainsAssy
 topmost assembly for displaying contains relationships
static vtkPropAssembly * topParentAssy
 topmost assembly for displaying parent/child relationships
static MBTag vtkTopContainsTag
 tag indicating whether a given set is in top contains assy
static const char * vtkTopContainsTagName
 name for vtkTopContainsTag;
static MBTag vtkTopParentTag
 tag indicating whether a given set is in top parent assy
static const char * vtkTopParentTagName
 name for vtkTopParentTag;
static MBTag vtkCellTag
 tag for pointing to vtk cell representing an entity
static const char * vtkCellTagName
 name for vtkCellTag
static MBTag vtkSetActorTag
 tag for pointing to vtk actor for a set
static const char * vtkSetActorTagName
 name for vtkSetActorTag
static MBTag vtkSetPropAssemblyTag
static const char * vtkSetPropAssemblyTagName
 name for vtkSetPropAssemblyTag
static MBTag vtkPointAllocatedTag
 tag for determining whether a point has been allocated for a vertex
static const char * vtkPointAllocatedTagName
 name for vtkPointAllocatedTag
static MBRange pickedEntities
 picked entities
static DrawDualdrawDual
static vtkCallbackCommand * eventCallbackCommand
static MBTag globalIdTag
 convenience tags and functions for accessing them
static MBTag categoryTag
static const int vtk_cell_types []
 mapping from MOAB to vtk entity types
static int totalColors
 number of colors to use
static vtkLookupTable * lookupTable
 a common lookup table for colors
static bool debug
 debug parameter

Private Member Functions

 vtkMOABUtils ()
 private constructor so nobody can construct one

Detailed Description

Definition at line 29 of file vtkMOABUtils.h.


Constructor & Destructor Documentation

private constructor so nobody can construct one


Member Function Documentation

static void vtkMOABUtils::add_geom_extractors ( vtkImplicitFunction *  this_func) [static]

put the specified extractor at the head of the pipeline, just after myUG

static void vtkMOABUtils::assign_global_ids ( ) [static]

assign global ids, in preparation for writing mesh

static MBTag vtkMOABUtils::category_tag ( ) [static]
static void vtkMOABUtils::change_set_properties ( MBRange high_mbsets,
MBRange unhigh_mbsets 
) [static]

highlight or unhighlight sets

static void vtkMOABUtils::change_set_visibility ( MBRange visible_sets,
MBRange invisible_sets 
) [static]

make sets visible/invisible (property set on actors)

static void vtkMOABUtils::construct_lookup_table ( const int  max_scalars) [static]

construct the color lookup table

static void vtkMOABUtils::destroy ( ) [static]

destroy static data in this class

static MBErrorCode vtkMOABUtils::empty_assy ( vtkPropAssembly *  this_assy) [static]

given a prop assembly, remove all its parts

static vtkActor* vtkMOABUtils::get_actor ( MBEntityHandle  this_set,
const bool  make_if_missing = false 
) [static]

given a set, get the actor, making a new one if requested and necessary

static MBErrorCode vtkMOABUtils::get_colors ( MBEntityHandle  dual_set,
const int  total_colors,
int &  global_id,
double &  red,
double &  green,
double &  blue 
) [static]

given a set, return the colors based on input total colors & global id

static MBErrorCode vtkMOABUtils::get_id_list ( MBEntityHandle  this_set,
vtkIdList *&  ids 
) [static]

given a set, get the list of vtk cell ids for its entities

static MBErrorCode vtkMOABUtils::get_id_list ( MBRange ents,
vtkIdList *&  ids 
) [static]

given a range, get the list of vtk cell ids for its entities

static vtkProperty* vtkMOABUtils::get_property ( MBEntityHandle  this_set,
const bool  make_if_missing = false 
) [static]

given an entity set, return the property of the associated actor; if none, and make_if_missing is true, make one

static vtkProperty* vtkMOABUtils::get_property ( vtkActor *  this_actor,
const bool  make_if_missing = false 
) [static]

return the property of the associated actor; if none, and make_if_missing is true, make one

static MBEntityHandle vtkMOABUtils::get_set ( vtkProp *  this_prop) [static]

given a prop, get the corresponding set

static MBErrorCode vtkMOABUtils::get_set_category_name ( MBEntityHandle  this_set,
char *  this_name 
) [static]

return a category name, if any, for this set in this_name

static MBErrorCode vtkMOABUtils::get_top_contains_sets ( MBRange top_sets) [static]

return all top-level "contains" sets, i.e. those which aren't contained in others

static MBErrorCode vtkMOABUtils::get_top_parent_sets ( MBRange top_sets) [static]

return all top-level parent sets, i.e. those with children who aren't children of others

static MBTag vtkMOABUtils::globalId_tag ( ) [static]
static MBErrorCode vtkMOABUtils::init ( MBInterface impl,
vtkRenderer *  this_ren 
) [static]

initialize the data in this class

static MBErrorCode vtkMOABUtils::make_cells ( MBRange ents,
vtkUnstructuredGrid *&  ug 
) [static]

for a given range of entities, make vtk cells and put in ug (only for entities with default vtkCellTag value)

static MBErrorCode vtkMOABUtils::make_cells ( MBEntityType  in_type,
vtkUnstructuredGrid *&  ug 
) [static]

variations on make_cells above

static MBErrorCode vtkMOABUtils::make_cells ( vtkUnstructuredGrid *&  ug) [static]

variations on make_cells above

static void vtkMOABUtils::make_properties ( ) [static]

initialize some shared properties

static MBErrorCode vtkMOABUtils::make_vertex_points ( vtkUnstructuredGrid *&  ug) [static]

for vertices, construct points and put in ug assumes point ids will match vertex ids

static void vtkMOABUtils::print_debug ( ) [static]

print debug information about all the actors

static void vtkMOABUtils::remove_geom_extractors ( ) [static]

remove the specified extractor from the head of the pipeline, just after myUG

static void vtkMOABUtils::reset_drawing_data ( ) [static]

get rid of all the vtk drawing stuff

static MBErrorCode vtkMOABUtils::set_color ( MBEntityHandle  dual_set,
vtkProperty *  this_property,
const int  total_colors = totalColors 
) [static]

given a set and property, set the color based on total_colors & global id

static MBErrorCode vtkMOABUtils::setup_tube_filter ( MBEntityHandle  this_set,
vtkExtractCells *  ec,
vtkMapper *&  this_mapper 
) [static]

set up a tube filter on this set & ec, and assign it to a (new) mapper

static void vtkMOABUtils::toggle_wireframe_shaded ( MBRange high_mbsets) [static]

toggle the wireframe/shaded property

static MBErrorCode vtkMOABUtils::update_all_actors ( MBEntityHandle  this_set,
vtkUnstructuredGrid *  ug,
const bool  shaded = true,
const bool  tubed = false,
const bool  colored = false 
) [static]

for all sets contained in this set (exclusive), check for an actor, and make one if one's not found

static void vtkMOABUtils::update_display ( vtkUnstructuredGrid *  ug = NULL) [static]

update the display with all the mesh

static MBErrorCode vtkMOABUtils::update_set_actors ( const MBRange update_sets,
vtkUnstructuredGrid *  ug,
const bool  shaded = true,
const bool  tubed = false,
const bool  colored = false 
) [static]

for all sets in this range, check for an actor, and make one if one's not found


Member Data Documentation

std::map<vtkActor*, vtkProperty*> vtkMOABUtils::actorProperties [static]

map between actors in the display and properties; if null, an actor inherits from topProperty

Definition at line 56 of file vtkMOABUtils.h.

Definition at line 117 of file vtkMOABUtils.h.

bool vtkMOABUtils::debug [static]

debug parameter

Definition at line 251 of file vtkMOABUtils.h.

Definition at line 108 of file vtkMOABUtils.h.

DualTool* vtkMOABUtils::dualTool [static]

static dualtool ptr

Definition at line 40 of file vtkMOABUtils.h.

vtkCallbackCommand* vtkMOABUtils::eventCallbackCommand [static]

vtk command structure for processing pick events; modeled after vtkInteractorStyle::EventCallbackCommand

Definition at line 112 of file vtkMOABUtils.h.

convenience tags and functions for accessing them

Definition at line 115 of file vtkMOABUtils.h.

vtkProperty* vtkMOABUtils::highlightProperty [static]

the highlight property

Definition at line 52 of file vtkMOABUtils.h.

vtkLookupTable* vtkMOABUtils::lookupTable [static]

a common lookup table for colors

Definition at line 127 of file vtkMOABUtils.h.

standard constructor-type function

static interface pointer, use this when accessing MOAB within vtk

Definition at line 37 of file vtkMOABUtils.h.

vtkRenderer* vtkMOABUtils::myRen [static]

static pointer to the renderer

Definition at line 43 of file vtkMOABUtils.h.

vtkUnstructuredGrid* vtkMOABUtils::myUG [static]

unstructured grid at the start of the pipeline

Definition at line 46 of file vtkMOABUtils.h.

picked entities

Definition at line 106 of file vtkMOABUtils.h.

std::map<vtkProp*, MBEntityHandle> vtkMOABUtils::propSetMap [static]

map between props (actor2d's and actors) and sets they represent (0 if no set, e.g. an extracted set)

Definition at line 60 of file vtkMOABUtils.h.

vtkPropAssembly* vtkMOABUtils::topContainsAssy [static]

topmost assembly for displaying contains relationships

Definition at line 63 of file vtkMOABUtils.h.

vtkPropAssembly* vtkMOABUtils::topParentAssy [static]

topmost assembly for displaying parent/child relationships

Definition at line 66 of file vtkMOABUtils.h.

vtkProperty* vtkMOABUtils::topProperty [static]

the default property

Definition at line 49 of file vtkMOABUtils.h.

number of colors to use

Definition at line 124 of file vtkMOABUtils.h.

const int vtkMOABUtils::vtk_cell_types[] [static]

mapping from MOAB to vtk entity types

Definition at line 121 of file vtkMOABUtils.h.

tag for pointing to vtk cell representing an entity

Definition at line 81 of file vtkMOABUtils.h.

const char* vtkMOABUtils::vtkCellTagName [static]

name for vtkCellTag

Definition at line 84 of file vtkMOABUtils.h.

tag for determining whether a point has been allocated for a vertex

Definition at line 100 of file vtkMOABUtils.h.

name for vtkPointAllocatedTag

Definition at line 103 of file vtkMOABUtils.h.

tag for pointing to vtk actor for a set

Definition at line 87 of file vtkMOABUtils.h.

const char* vtkMOABUtils::vtkSetActorTagName [static]

name for vtkSetActorTag

Definition at line 90 of file vtkMOABUtils.h.

tag for pointing to vtk prop assembly for a set; a prop assembly for a set is only created if the set contains sets

Definition at line 94 of file vtkMOABUtils.h.

name for vtkSetPropAssemblyTag

Definition at line 97 of file vtkMOABUtils.h.

tag indicating whether a given set is in top contains assy

Definition at line 69 of file vtkMOABUtils.h.

name for vtkTopContainsTag;

Definition at line 72 of file vtkMOABUtils.h.

tag indicating whether a given set is in top parent assy

Definition at line 75 of file vtkMOABUtils.h.

const char* vtkMOABUtils::vtkTopParentTagName [static]

name for vtkTopParentTag;

Definition at line 78 of file vtkMOABUtils.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines