#include <VIS_Visualizer.h>
Definition at line 57 of file VIS_Visualizer.h.
VIS_Visualizer::VIS_Visualizer |
( |
| ) |
|
virtual VIS_Visualizer::~VIS_Visualizer |
( |
| ) |
|
|
virtual |
void VIS_Visualizer::bumpSerialNum |
( |
| ) |
|
We may need to bump the serial number manually. One example is when the visualizer is moved from one table to another, particularly from one node's table to another.
virtual void VIS_Visualizer::cookMyVisualizer |
( |
| ) |
|
|
protectedpure virtual |
cookMyVisualizer is called during prior to a viewport render if since the last "cook" the visualizer parameters have changed. The purpose of cookMyVisualizer method is to:
- read the parameters and cache their values,
- determine whether any of the changes in parameters warrant requesting for an update or refinement and submit the request,
- set visualizer flags according to its current state,
- possibly anything else that involves changing the member variables of the visualizer particularly since essentially all other virtual methods on a visualizer, most importatly createPrimitive and filterPrimitive are const due to fact that at the state of the visualizer should not change by or depend on its processing of any particular primitive.
int VIS_Visualizer::cookVersion |
( |
| ) |
const |
|
inlineprotected |
Set the values of common parameters to those of other_vis.
bool VIS_Visualizer::enableParm |
( |
const char * |
pn, |
|
|
int |
state, |
|
|
int |
v = -1 |
|
) |
| |
Helper methods to enable/disable or set visibility of parameters.
Get or set one or more of the visualizer flags.
VIS_Mount* VIS_Visualizer::getMount |
( |
| ) |
const |
|
inline |
int VIS_Visualizer::getSerialNum |
( |
| ) |
|
|
inline |
Returns the visualizer's construction serial number. This is copied from a global counter which is incremented each time a visualizer (of any type) is created. It is used, e.g., in VISF_Primitive to ensure that visualizer being referenced by the primitive is the same as the one which has created it.
Definition at line 139 of file VIS_Visualizer.h.
virtual PRM_Template* VIS_Visualizer::getTemplateList |
( |
| ) |
const |
|
pure virtual |
int VIS_Visualizer::getTypeId |
( |
| ) |
const |
|
inline |
Request the named attribute be "filled" during the update of any GR_Primitive in a detail on which this visualizer acts. This is used, e.g., for preparing decoration rendering based on a particualr attribute.
void VIS_Visualizer::requestRefinement |
( |
| ) |
|
Request for an update or refinement due to changes in visualizer parameters. These are to be used only from the visualizers cook method (cookMyVisualizer). They take effect if the visualizer is active in some context or else when the visualizer becomes first active in some context. Note that the flags NeedsRefine and NeedsUpdate ensure that a refinement or update is triggered for the visualizer if it has "missed" the latest occurrence of these events due to being inactive. However, the visualizer must explicitly request for updates or refinements after cooking its parameters or else its parameter list version is not bumped. This is to prevent automatic updates and refinements due to parameter change and to only trigger them for changes to parameters that truly affect the existing or created geometry.
void VIS_Visualizer::requestUpdate |
( |
| ) |
|
bool VIS_Visualizer::save |
( |
std::ostream & |
os | ) |
|
Save and load method: these only write or read the visualizers parameters to or from the given stream.
void VIS_Visualizer::setFlags |
( |
uint32 |
mask, |
|
|
bool |
onoff |
|
) |
| |
bool VIS_Visualizer::setVisibleState |
( |
const char * |
pn, |
|
|
bool |
state, |
|
|
int |
v = -1 |
|
) |
| |
virtual bool VIS_Visualizer::updateParmsFlags |
( |
| ) |
|
|
inlinevirtual |
This virtual is called when a visualizer parameter is changed to allow changing the visibility or enabled state of related parameters.
Definition at line 68 of file VIS_Visualizer.h.
friend class VISF_Dispatcher |
|
friend |
The documentation for this class was generated from the following file: