VTK
|
level of detail 3D prop More...
#include <vtkLODProp3D.h>
Public Types | |
typedef vtkProp3D | Superclass |
Public Types inherited from vtkProp3D | |
typedef vtkProp | Superclass |
Public Types inherited from vtkProp | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Static Public Member Functions | |
static vtkLODProp3D * | New () |
static int | IsTypeOf (const char *type) |
static vtkLODProp3D * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkProp3D | |
static int | IsTypeOf (const char *type) |
static vtkProp3D * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkProp | |
static int | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObjectBase *o) |
static vtkInformationIntegerKey * | GeneralTextureUnit () |
static vtkInformationDoubleVectorKey * | GeneralTextureTransform () |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkLODProp3D () | |
~vtkLODProp3D () | |
int | GetAutomaticPickPropIndex (void) |
int | GetNextEntryIndex () |
int | ConvertIDToIndex (int id) |
Protected Member Functions inherited from vtkProp3D | |
vtkProp3D () | |
~vtkProp3D () | |
Protected Member Functions inherited from vtkProp | |
vtkProp () | |
~vtkProp () | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
level of detail 3D prop
vtkLODProp3D is a class to support level of detail rendering for Prop3D. Any number of mapper/property/texture items can be added to this object. Render time will be measured, and will be used to select a LOD based on the AllocatedRenderTime of this Prop3D. Depending on the type of the mapper/property, a vtkActor or a vtkVolume will be created behind the scenes.
Definition at line 65 of file vtkLODProp3D.h.
typedef vtkProp3D vtkLODProp3D::Superclass |
Definition at line 71 of file vtkLODProp3D.h.
|
protected |
|
protected |
|
static |
Create an instance of this class.
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkProp3D.
|
static |
|
protectedvirtual |
Reimplemented from vtkProp3D.
vtkLODProp3D* vtkLODProp3D::NewInstance | ( | ) | const |
|
virtual |
|
virtual |
|
inline |
Standard vtkProp method to get 3D bounds of a 3D prop
Definition at line 77 of file vtkLODProp3D.h.
int vtkLODProp3D::AddLOD | ( | vtkMapper * | m, |
vtkProperty * | p, | ||
vtkProperty * | back, | ||
vtkTexture * | t, | ||
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
int vtkLODProp3D::AddLOD | ( | vtkMapper * | m, |
vtkProperty * | p, | ||
vtkTexture * | t, | ||
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
int vtkLODProp3D::AddLOD | ( | vtkMapper * | m, |
vtkProperty * | p, | ||
vtkProperty * | back, | ||
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
int vtkLODProp3D::AddLOD | ( | vtkMapper * | m, |
vtkProperty * | p, | ||
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
int vtkLODProp3D::AddLOD | ( | vtkMapper * | m, |
vtkTexture * | t, | ||
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
int vtkLODProp3D::AddLOD | ( | vtkAbstractVolumeMapper * | m, |
vtkVolumeProperty * | p, | ||
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
int vtkLODProp3D::AddLOD | ( | vtkAbstractVolumeMapper * | m, |
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
int vtkLODProp3D::AddLOD | ( | vtkImageMapper3D * | m, |
vtkImageProperty * | p, | ||
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
int vtkLODProp3D::AddLOD | ( | vtkImageMapper3D * | m, |
double | time | ||
) |
Add a level of detail with a given mapper, property, backface property, texture, and guess of rendering time. The property and texture fields can be set to NULL (the other methods are included for script access where null variables are not allowed). The time field can be set to 0.0 indicating that no initial guess for rendering time is being supplied. The returned integer value is an ID that can be used later to delete this LOD, or set it as the selected LOD.
|
virtual |
Get the current number of LODs.
|
virtual |
Get the current index, used to determine the ID of the next LOD that is added. Useful for guessing what IDs have been used (with NumberOfLODs, without depending on the constructor initialization to
void vtkLODProp3D::RemoveLOD | ( | int | id | ) |
Delete a level of detail given an ID. This is the ID returned by the AddLOD method
void vtkLODProp3D::SetLODProperty | ( | int | id, |
vtkProperty * | p | ||
) |
Methods to set / get the property of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the property to get it. The returned property will be NULL if the id is not valid, or the property is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::GetLODProperty | ( | int | id, |
vtkProperty ** | p | ||
) |
Methods to set / get the property of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the property to get it. The returned property will be NULL if the id is not valid, or the property is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::SetLODProperty | ( | int | id, |
vtkVolumeProperty * | p | ||
) |
Methods to set / get the property of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the property to get it. The returned property will be NULL if the id is not valid, or the property is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::GetLODProperty | ( | int | id, |
vtkVolumeProperty ** | p | ||
) |
Methods to set / get the property of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the property to get it. The returned property will be NULL if the id is not valid, or the property is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::SetLODProperty | ( | int | id, |
vtkImageProperty * | p | ||
) |
Methods to set / get the property of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the property to get it. The returned property will be NULL if the id is not valid, or the property is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::GetLODProperty | ( | int | id, |
vtkImageProperty ** | p | ||
) |
Methods to set / get the property of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the property to get it. The returned property will be NULL if the id is not valid, or the property is of the wrong type for the corresponding Prop3D.
Methods to set / get the mapper of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the mapper to get it. The returned mapper will be NULL if the id is not valid, or the mapper is of the wrong type for the corresponding Prop3D.
Methods to set / get the mapper of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the mapper to get it. The returned mapper will be NULL if the id is not valid, or the mapper is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::SetLODMapper | ( | int | id, |
vtkAbstractVolumeMapper * | m | ||
) |
Methods to set / get the mapper of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the mapper to get it. The returned mapper will be NULL if the id is not valid, or the mapper is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::GetLODMapper | ( | int | id, |
vtkAbstractVolumeMapper ** | m | ||
) |
Methods to set / get the mapper of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the mapper to get it. The returned mapper will be NULL if the id is not valid, or the mapper is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::SetLODMapper | ( | int | id, |
vtkImageMapper3D * | m | ||
) |
Methods to set / get the mapper of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the mapper to get it. The returned mapper will be NULL if the id is not valid, or the mapper is of the wrong type for the corresponding Prop3D.
void vtkLODProp3D::GetLODMapper | ( | int | id, |
vtkImageMapper3D ** | m | ||
) |
Methods to set / get the mapper of an LOD. Since the LOD could be a volume or an actor, you have to pass in the pointer to the mapper to get it. The returned mapper will be NULL if the id is not valid, or the mapper is of the wrong type for the corresponding Prop3D.
vtkAbstractMapper3D* vtkLODProp3D::GetLODMapper | ( | int | id | ) |
Get the LODMapper as an vtkAbstractMapper3D. It is the user's respondibility to safe down cast this to a vtkMapper or vtkVolumeMapper as appropriate.
void vtkLODProp3D::SetLODBackfaceProperty | ( | int | id, |
vtkProperty * | t | ||
) |
Methods to set / get the backface property of an LOD. This method is only valid for LOD ids that are Actors (not Volumes)
void vtkLODProp3D::GetLODBackfaceProperty | ( | int | id, |
vtkProperty ** | t | ||
) |
Methods to set / get the backface property of an LOD. This method is only valid for LOD ids that are Actors (not Volumes)
void vtkLODProp3D::SetLODTexture | ( | int | id, |
vtkTexture * | t | ||
) |
Methods to set / get the texture of an LOD. This method is only valid for LOD ids that are Actors (not Volumes)
void vtkLODProp3D::GetLODTexture | ( | int | id, |
vtkTexture ** | t | ||
) |
Methods to set / get the texture of an LOD. This method is only valid for LOD ids that are Actors (not Volumes)
void vtkLODProp3D::EnableLOD | ( | int | id | ) |
Enable / disable a particular LOD. If it is disabled, it will not be used during automatic selection, but can be selected as the LOD if automatic LOD selection is off.
void vtkLODProp3D::DisableLOD | ( | int | id | ) |
Enable / disable a particular LOD. If it is disabled, it will not be used during automatic selection, but can be selected as the LOD if automatic LOD selection is off.
Enable / disable a particular LOD. If it is disabled, it will not be used during automatic selection, but can be selected as the LOD if automatic LOD selection is off.
Set the level of a particular LOD. When a LOD is selected for rendering because it has the largest render time that fits within the allocated time, all LOD are then checked to see if any one can render faster but has a lower (more resolution/better) level. This quantity is a double to ensure that a level can be inserted between 2 and 3.
Set the level of a particular LOD. When a LOD is selected for rendering because it has the largest render time that fits within the allocated time, all LOD are then checked to see if any one can render faster but has a lower (more resolution/better) level. This quantity is a double to ensure that a level can be inserted between 2 and 3.
Set the level of a particular LOD. When a LOD is selected for rendering because it has the largest render time that fits within the allocated time, all LOD are then checked to see if any one can render faster but has a lower (more resolution/better) level. This quantity is a double to ensure that a level can be inserted between 2 and 3.
Access method that can be used to find out the estimated render time (the thing used to select an LOD) for a given LOD ID or index. Value is returned in seconds.
Access method that can be used to find out the estimated render time (the thing used to select an LOD) for a given LOD ID or index. Value is returned in seconds.
|
virtual |
Turn on / off automatic selection of LOD. This is on by default. If it is off, then the SelectedLODID is rendered regardless of rendering time or desired update rate.
|
virtual |
Turn on / off automatic selection of LOD. This is on by default. If it is off, then the SelectedLODID is rendered regardless of rendering time or desired update rate.
|
virtual |
Turn on / off automatic selection of LOD. This is on by default. If it is off, then the SelectedLODID is rendered regardless of rendering time or desired update rate.
|
virtual |
Turn on / off automatic selection of LOD. This is on by default. If it is off, then the SelectedLODID is rendered regardless of rendering time or desired update rate.
|
virtual |
Set the id of the LOD that is to be drawn when automatic LOD selection is turned off.
|
virtual |
Set the id of the LOD that is to be drawn when automatic LOD selection is turned off.
int vtkLODProp3D::GetLastRenderedLODID | ( | ) |
Get the ID of the previously (during the last render) selected LOD index
int vtkLODProp3D::GetPickLODID | ( | void | ) |
Get the ID of the appropriate pick LOD index
|
virtual |
For some exporters and other other operations we must be able to collect all the actors or volumes. These methods are used in that process.
Reimplemented from vtkProp.
|
virtual |
For some exporters and other other operations we must be able to collect all the actors or volumes. These methods are used in that process.
Reimplemented from vtkProp.
void vtkLODProp3D::SetSelectedPickLODID | ( | int | id | ) |
Set the id of the LOD that is to be used for picking when automatic LOD pick selection is turned off.
|
virtual |
Set the id of the LOD that is to be used for picking when automatic LOD pick selection is turned off.
|
virtual |
Turn on / off automatic selection of picking LOD. This is on by default. If it is off, then the SelectedLODID is rendered regardless of rendering time or desired update rate.
|
virtual |
Turn on / off automatic selection of picking LOD. This is on by default. If it is off, then the SelectedLODID is rendered regardless of rendering time or desired update rate.
|
virtual |
Turn on / off automatic selection of picking LOD. This is on by default. If it is off, then the SelectedLODID is rendered regardless of rendering time or desired update rate.
|
virtual |
Turn on / off automatic selection of picking LOD. This is on by default. If it is off, then the SelectedLODID is rendered regardless of rendering time or desired update rate.
|
virtual |
Shallow copy of this vtkLODProp3D.
Reimplemented from vtkProp.
|
virtual |
Support the standard render methods.
Reimplemented from vtkProp.
|
virtual |
Support the standard render methods.
Reimplemented from vtkProp.
|
virtual |
Support the standard render methods.
Reimplemented from vtkProp.
|
virtual |
Does this prop have some translucent polygonal geometry?
Reimplemented from vtkProp.
|
virtual |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkProp.
void vtkLODProp3D::SetAllocatedRenderTime | ( | double | t, |
vtkViewport * | vp | ||
) |
Used by the culler / renderer to set the allocated render time for this prop. This is based on the desired update rate, and possibly some other properties such as potential screen coverage of this prop.
|
virtual |
Used when the render process is aborted to restore the previous estimated render time. Overridden here to allow previous time for a particular LOD to be restored - otherwise the time for the last rendered LOD will be copied into the currently selected LOD.
Reimplemented from vtkProp.
|
virtual |
Override method from vtkProp in order to push this call down to the selected LOD as well.
|
protected |
|
protected |
|
protected |
Definition at line 282 of file vtkLODProp3D.h.
|
protected |
Definition at line 283 of file vtkLODProp3D.h.
|
protected |
Definition at line 284 of file vtkLODProp3D.h.
|
protected |
Definition at line 285 of file vtkLODProp3D.h.
|
protected |
Definition at line 289 of file vtkLODProp3D.h.
|
protected |
Definition at line 291 of file vtkLODProp3D.h.
|
protected |
Definition at line 292 of file vtkLODProp3D.h.
|
protected |
Definition at line 293 of file vtkLODProp3D.h.
|
protected |
Definition at line 294 of file vtkLODProp3D.h.
|
protected |
Definition at line 295 of file vtkLODProp3D.h.