15 #ifndef vtkPVRenderView_h 16 #define vtkPVRenderView_h 27 class vtkCameraOrientationWidget;
43 class vtkPolarAxesActor2D;
74 INTERACTION_MODE_UNINTIALIZED = -1,
75 INTERACTION_MODE_3D = 0,
79 INTERACTION_MODE_POLYGON
94 virtual void SetInteractionMode(
int mode);
95 vtkGetMacro(InteractionMode,
int);
103 void SetSize(
int,
int)
override;
113 vtkGetObjectMacro(NonCompositedRenderer,
vtkRenderer);
121 DEFAULT_RENDERER = 0,
122 NON_COMPOSITED_RENDERER = 1,
130 virtual vtkRenderer* GetRenderer(
int rendererType = DEFAULT_RENDERER);
138 virtual void SetActiveCamera(
vtkCamera*);
168 void ResetCamera(
double bounds[6]);
169 void ResetCameraScreenSpace(
double offsetRatio = 0.9);
170 void ResetCameraScreenSpace(
double* bounds,
double offsetRatio = 0.9);
182 double LastRepresentationVisibleBounds[6];
209 vtkSetMacro(SuppressRendering,
bool);
210 vtkGetMacro(SuppressRendering,
bool);
211 vtkBooleanMacro(SuppressRendering,
bool);
223 vtkSetClampMacro(StillRenderImageReductionFactor,
int, 1, 20);
224 vtkGetMacro(StillRenderImageReductionFactor,
int);
234 vtkSetClampMacro(InteractiveRenderImageReductionFactor,
int, 1, 20);
235 vtkGetMacro(InteractiveRenderImageReductionFactor,
int);
244 vtkSetMacro(RemoteRenderingThreshold,
double);
245 vtkGetMacro(RemoteRenderingThreshold,
double);
254 vtkSetMacro(LODRenderingThreshold,
double);
255 vtkGetMacro(LODRenderingThreshold,
double);
265 vtkSetClampMacro(LODResolution,
double, 0.0, 1.0);
266 vtkGetMacro(LODResolution,
double);
276 vtkSetMacro(UseOutlineForLODRendering,
bool);
277 vtkGetMacro(UseOutlineForLODRendering,
bool);
288 void ConfigureCompressor(
const char* configuration);
294 virtual void ResetCameraClippingRange();
301 void SetUseLightKit(
bool enable);
302 vtkGetMacro(UseLightKit,
bool);
303 vtkBooleanMacro(UseLightKit,
bool);
307 void StreamingUpdate(
const double view_planes[24]);
308 void DeliverStreamedPieces(
unsigned int size,
unsigned int* representation_ids);
365 void SelectCells(
int region[4],
const char* array =
nullptr);
366 void SelectCells(
int region0,
int region1,
int region2,
int region3,
const char* array =
nullptr)
368 int r[4] = { region0, region1, region2, region3 };
369 this->SelectCells(r, array);
371 void SelectPoints(
int region[4],
const char* array =
nullptr);
372 void SelectPoints(
int region0,
int region1,
int region2,
int region3,
const char* array =
nullptr)
374 int r[4] = { region0, region1, region2, region3 };
375 this->SelectPoints(r, array);
377 void Select(
int field_association,
int region[4],
const char* array =
nullptr);
391 void SelectPolygonPoints(
int* polygon2DArray,
vtkIdType arrayLen);
392 void SelectPolygonCells(
int* polygon2DArray,
vtkIdType arrayLen);
393 void SelectPolygon(
int field_association,
int* polygon2DArray,
vtkIdType arrayLen);
409 vtkSetMacro(UseInteractiveRenderingForScreenshots,
bool);
410 vtkBooleanMacro(UseInteractiveRenderingForScreenshots,
bool);
411 vtkGetMacro(UseInteractiveRenderingForScreenshots,
bool);
418 vtkGetMacro(RemoteRenderingAvailable,
bool);
426 void NVPipeAvailableOn();
427 void NVPipeAvailableOff();
434 vtkGetMacro(UsedLODForLastRender,
bool);
442 void InvalidateCachedSelection();
454 static void SetRedistributionMode(
456 static void SetRedistributionModeToSplitBoundaryCells(
458 static void SetRedistributionModeToDuplicateBoundaryCells(
460 static void SetRedistributionModeToUniquelyAssignBoundaryCells(
465 static void SetNextStreamedPiece(
501 USE_BOUNDS_FOR_REDISTRIBUTION = 0x01,
502 DATA_IS_REDISTRIBUTABLE = 0x02,
503 USE_DATA_FOR_LOAD_BALANCING = 0x40,
505 static void SetOrderedCompositingConfiguration(
vtkInformation* info,
513 void SetMaxClipBounds(
double bds[6]);
520 void SetLockBounds(
bool nv);
521 vtkGetMacro(LockBounds,
bool);
529 static void SetDeliverToAllProcesses(
541 static void SetDeliverToClientAndRenderingProcesses(
vtkInformation* info,
554 static void SetRequiresDistributedRendering(
576 static void SetForceDataDistributionMode(
vtkInformation* info,
int flag);
595 void SetShowAnnotation(
bool val);
596 vtkSetMacro(UpdateAnnotation,
bool);
603 void SetAnnotationColor(
double r,
double g,
double b);
619 virtual void SetPolarGridActor(vtkPolarAxesActor2D*);
625 virtual void SetOrientationAxesInteractivity(
bool);
626 virtual void SetOrientationAxesVisibility(
bool);
628 void SetOrientationAxesLabelColor(
double r,
double g,
double b);
629 void SetOrientationAxesOutlineColor(
double r,
double g,
double b);
631 void SetOrientationAxesXColor(
double r,
double g,
double b);
632 void SetOrientationAxesYColor(
double r,
double g,
double b);
633 void SetOrientationAxesZColor(
double r,
double g,
double b);
635 void SetOrientationAxesXVisibility(
bool vis);
636 void SetOrientationAxesYVisibility(
bool vis);
637 void SetOrientationAxesZVisibility(
bool vis);
639 void SetOrientationAxesXLabelText(
const char* text);
640 void SetOrientationAxesYLabelText(
const char* text);
641 void SetOrientationAxesZLabelText(
const char* text);
648 void SetCameraOrientationWidgetVisibility(
bool visible);
649 void SetCameraOrientationWidgetSize(
int size);
650 void SetCameraOrientationWidgetPadding(
int padding[2]);
651 void SetCameraOrientationWidgetAnchor(
int anchor);
657 virtual void SetCenterAxesVisibility(
bool);
663 virtual void SetCenterOfRotation(
double x,
double y,
double z);
664 virtual void SetRotationFactor(
double factor);
671 void SetKeyLightWarmth(
double val);
672 void SetKeyLightIntensity(
double val);
673 void SetKeyLightElevation(
double val);
674 void SetKeyLightAzimuth(
double val);
675 void SetFillLightWarmth(
double val);
676 void SetKeyToFillRatio(
double val);
677 void SetFillLightElevation(
double val);
678 void SetFillLightAzimuth(
double val);
679 void SetBackLightWarmth(
double val);
680 void SetKeyToBackRatio(
double val);
681 void SetBackLightElevation(
double val);
682 void SetBackLightAzimuth(
double val);
683 void SetHeadLightWarmth(
double val);
684 void SetKeyToHeadRatio(
double val);
685 void SetMaintainLuminance(
int val);
692 vtkSetMacro(UseHiddenLineRemoval,
bool);
693 virtual void SetUseDepthPeeling(
int val);
694 virtual void SetUseDepthPeelingForVolumes(
bool val);
695 virtual void SetMaximumNumberOfPeels(
int val);
696 virtual void SetBackgroundTexture(
vtkTexture* val);
704 vtkSetMacro(UseRenderViewSettingsForBackground,
bool);
705 vtkGetMacro(UseRenderViewSettingsForBackground,
bool);
723 vtkSetClampMacro(BackgroundColorMode,
int, DEFAULT, STEREO_SKYBOX);
724 vtkSetVector3Macro(Background,
double);
725 vtkGetVector3Macro(Background,
double);
726 vtkSetVector3Macro(Background2,
double);
727 vtkGetVector3Macro(Background2,
double);
728 vtkSetMacro(UseEnvironmentLighting,
bool);
735 virtual void SetEnvironmentalBG(
double r,
double g,
double b);
736 virtual void SetEnvironmentalBG2(
double r,
double g,
double b);
737 virtual void SetEnvironmentalBGTexture(
vtkTexture* val);
738 virtual void SetGradientEnvironmentalBG(
int val);
739 virtual void SetTexturedEnvironmentalBG(
int val);
740 virtual void SetBackgroundMode(
int val);
755 void SetStereoCapableWindow(
int val);
756 void SetStereoRender(
int val);
757 vtkSetMacro(StereoType,
int);
758 vtkSetMacro(ServerStereoType,
int);
759 void SetMultiSamples(
int val);
760 void SetAlphaBitPlanes(
int val);
761 void SetStencilCapable(
int val);
767 void SetParallelProjection(
int mode);
773 virtual void SetCamera2DManipulators(
const int manipulators[9]);
774 virtual void SetCamera3DManipulators(
const int manipulators[9]);
776 virtual void SetReverseMouseWheelZoomDirection(
bool reverse);
777 virtual void SetMouseWheelZoomsToCursor(
bool value);
778 virtual void SetCamera2DMouseWheelMotionFactor(
double factor);
779 virtual void SetCamera3DMouseWheelMotionFactor(
double factor);
787 virtual void SynchronizeGeometryBounds();
801 virtual void UpdateLOD();
809 vtkGetMacro(UseLODForInteractiveRender,
bool);
818 vtkGetMacro(UseDistributedRenderingForRender,
bool);
827 vtkGetMacro(UseDistributedRenderingForLODRender,
bool);
836 vtkGetMacro(StillRenderProcesses, vtkTypeUInt32);
845 vtkGetMacro(InteractiveRenderProcesses, vtkTypeUInt32);
851 int GetDataDistributionMode(
bool low_res);
858 void Deliver(
int use_lod,
unsigned int size,
unsigned int* representation_ids)
override;
868 bool GetUseOrderedCompositing();
874 bool GetRenderEmptyImages();
880 vtkSetMacro(UseFXAA,
bool);
881 vtkGetMacro(UseFXAA,
bool);
888 void SetFXAARelativeContrastThreshold(
double val);
889 void SetFXAAHardContrastThreshold(
double val);
890 void SetFXAASubpixelBlendLimit(
double val);
891 void SetFXAASubpixelContrastThreshold(
double val);
892 void SetFXAAUseHighQualityEndpoints(
bool val);
893 void SetFXAAEndpointSearchIterations(
int val);
910 void SetUseToneMapping(
bool v);
911 vtkGetMacro(UseToneMapping,
bool);
912 void SetToneMappingType(
int);
913 void SetExposure(
double);
914 void SetContrast(
double);
915 void SetShoulder(
double);
916 void SetMidIn(
double);
917 void SetMidOut(
double);
918 void SetHdrMax(
double);
919 void SetUseACES(
bool);
920 void SetGenericFilmicPresets(
int t);
927 vtkSetMacro(UseSSAO,
bool);
928 vtkGetMacro(UseSSAO,
bool);
929 vtkSetMacro(UseSSAODefaultPresets,
bool);
930 vtkSetMacro(Radius,
double);
931 vtkSetMacro(KernelSize,
int);
932 vtkSetMacro(Bias,
double);
933 vtkSetMacro(Blur,
bool);
948 void AddPropToRenderer(
vtkProp* prop);
949 void RemovePropFromRenderer(
vtkProp* prop);
967 bool BeginValuePassForRendering(
int fieldAssociation,
const char* arrayName,
int component);
968 void EndValuePassForRendering();
976 void CaptureZBuffer();
984 void SetEnableOSPRay(
bool);
985 bool GetEnableOSPRay();
991 void SetShadows(
bool);
998 void SetAmbientOcclusionSamples(
int);
999 int GetAmbientOcclusionSamples();
1005 void SetRouletteDepth(
int);
1006 int GetRouletteDepth();
1013 void SetSamplesPerPixel(
int);
1014 int GetSamplesPerPixel();
1020 void SetMaxFrames(
int);
1026 bool GetOSPRayContinueStreaming();
1031 void SetDenoise(
bool);
1039 void SetLightScale(
double);
1040 double GetLightScale();
1046 void SetOSPRayRendererType(std::string);
1051 void SetBackgroundNorth(
double x,
double y,
double z);
1052 void SetBackgroundEast(
double x,
double y,
double z);
1063 void SetTimeCacheSize(
int);
1064 int GetTimeCacheSize();
1094 static void SetDiscreteCameras(
1124 virtual void Render(
bool interactive,
bool skip_rendering);
1138 bool ShouldUseDistributedRendering(
double geometry_size,
bool using_lod);
1143 bool ShouldUseLODRendering(
double geometry);
1149 bool IsProcessRenderingGeometriesForCompositing(
bool using_distributed_rendering);
1160 virtual void UpdateCenterAxes();
1166 bool GetLocalProcessDoesRendering(
bool using_distributed_rendering);
1172 bool TestCollaborationCounter();
1178 void SynchronizeForCollaboration();
1184 virtual void BuildAnnotationText(ostream& str);
1191 vtkGetMacro(SynchronizationCounter,
unsigned int);
1198 vtkGetMacro(MakingSelection,
bool);
1205 virtual bool PrepareSelect(
int fieldAssociation,
const char* array =
nullptr);
1210 virtual void PostSelect(
vtkSelection* sel,
const char* array =
nullptr);
1216 virtual void UpdateBackground(
vtkRenderer* renderer =
nullptr);
1228 virtual void SetupAndSetRenderer(
vtkRenderer* ren);
1267 bool ReverseMouseWheelZoomDirection =
false;
1323 bool MakingSelection;
1324 int PreviousSwapBuffers;
1325 void OnSelectionChangedEvent();
1326 void OnPolygonSelectionEvent();
1331 bool RemoteRenderingAvailable;
1334 bool DistributedRenderingRequired;
1335 bool NonDistributedRenderingRequired;
1336 bool DistributedRenderingRequiredLOD;
1337 bool NonDistributedRenderingRequiredLOD;
1340 int ParallelProjection;
1343 bool UseHiddenLineRemoval;
1346 vtkInternals* Internals;
1349 void UpdateAnnotationText();
1354 int ServerStereoType;
1355 void UpdateStereoProperties();
1357 int BackgroundColorMode;
1358 bool UseEnvironmentLighting;
1359 bool UseRenderViewSettingsForBackground;
1361 double Background2[3];
1366 int ForceDataDistributionMode;
1367 int PreviousDiscreteCameraIndex;
1369 bool UseTexturedEnvironmentalBG;
static void SetRequiresDistributedRenderingLOD(vtkInformation *info, vtkPVDataRepresentation *repr, bool value)
Some representation only work when remote rendering or local rendering.
vtkSmartPointer< vtkPolarAxesActor2D > PolarAxesActor
vtkPVInteractorStyle * InteractorStyle
coordinates rendering between corresponding renderers across multiple processes
vtkPVInteractorStyle * TwoDInteractorStyle
vtkSelection * LastSelection
vtkSmartPointer< vtkPVHardwareSelector > Selector
bool UseOutlineForLODRendering
#define VTKREMOTINGVIEWS_EXPORT
virtual void SetViewTime(double value)
Get/Set the time this view is showing.
bool UseLODForInteractiveRender
manages visual material definitions
vtkPVDataRepresentation adds some ParaView specific API to data representations.
vtkRenderViewBase * RenderView
virtual void AboutToRenderOnLocalProcess(bool interactive)
Called just before the local process renders.
bool UseDistributedRenderingForLODRender
virtual void Deliver(int use_lod, unsigned int size, unsigned int *representation_ids)
Called on all processes to request data-delivery for the list of representations. ...
double RemoteRenderingThreshold
vtkPVSynchronizedRenderer * SynchronizedRenderers
void Update() override
Overridden to not call Update() directly on the input representations, instead use ProcessViewRequest...
virtual void ScaleRendererViewports(const double viewport[4])
vtkViewLayout calls this method to update the total viewport available for this view.
vtkHardwareSelector subclass with paraview specific logic to avoid recapturing buffers unless needed...
vtkSmartPointer< vtkPVGridAxes3DActor > GridAxes3DActor
int GetForceDataDistributionMode() const
This is an temporary/experimental option and may be removed without notice.
baseclass for all ParaView views.
int InteractiveRenderImageReductionFactor
void SelectCells(int region0, int region1, int region2, int region3, const char *array=nullptr)
Make a selection.
void RemoteRenderingAvailableOff()
Returns if remote-rendering is possible on the current group of processes.
vtkSmartPointer< vtkLegendScaleActor > LegendGridActor
virtual void SetSize(int, int)
Set the size of this view in the multiview configuration.
bool UseInteractiveRenderingForScreenshots
vtkNew< vtkFXAAOptions > FXAAOptions
bool UseSSAODefaultPresets
bool IsForceDataDistributionModeSet() const
This is an temporary/experimental option and may be removed without notice.
vtkTypeUInt32 StillRenderProcesses
vtkNew< vtkSkybox > Skybox
vtkInteractorStyleRubberBandZoom * RubberBandZoom
vtkPVAxesWidget * OrientationWidget
double LODRenderingThreshold
vtkNew< vtkCameraOrientationWidget > CameraOrientationWidget
static void SetRequiresDistributedRendering(vtkInformation *info, vtkPVDataRepresentation *repr, bool value, bool for_lod=false)
Some representation only work when remote rendering or local rendering.
unsigned int SynchronizationCounter
collection of cameras used by vtkPVRenderView for cases where one wants to limit interactions to a fi...
vtkInteractorStyleDrawPolygon * PolygonStyle
void SelectPoints(int region0, int region1, int region2, int region3, const char *array=nullptr)
Make a selection.
GenericFilmicPresets
Defines tone mapping generic filmic presets.
vtkTimeStamp PriorityQueueBuildTimeStamp
Keeps track of the time when the priority-queue for streaming was generated.
bool NeedsOrderedCompositing
vtkBoundingBox GeometryBounds
virtual void SetPosition(int, int)
Set the position on this view in the multiview configuration.
vtkRenderer * NonCompositedRenderer
vtkWeakPointer< vtkPVCameraCollection > DiscreteCameras
bool UseDistributedRenderingForRender
int StillRenderImageReductionFactor
bool UsedLODForLastRender
vtkPVCenterAxesActor * CenterAxes
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void StillRender()=0
Triggers a high-resolution render.
vtkPVCenterAxesActor is an actor for the center-axes used in ParaView.
Render View for ParaView.
interactive manipulation of the camera
virtual void InteractiveRender()=0
Triggers a interactive render.
vtkSmartPointer< vtkRenderWindowInteractor > Interactor
vtkInteractorStyleRubberBand3D * RubberBandStyle
vtkPVInteractorStyle * ThreeDInteractorStyle
ParaView extensions for vtkGridAxes3DActor.
helper to assist in determine process order when rendering
vtkTypeUInt32 InteractiveRenderProcesses