15 #ifndef vtkPVRenderView_h 16 #define vtkPVRenderView_h 27 class vtkCameraOrientationWidget;
73 INTERACTION_MODE_UNINTIALIZED = -1,
74 INTERACTION_MODE_3D = 0,
78 INTERACTION_MODE_POLYGON
93 virtual void SetInteractionMode(
int mode);
94 vtkGetMacro(InteractionMode,
int);
102 void SetSize(
int,
int)
override;
112 vtkGetObjectMacro(NonCompositedRenderer,
vtkRenderer);
120 DEFAULT_RENDERER = 0,
121 NON_COMPOSITED_RENDERER = 1,
129 virtual vtkRenderer* GetRenderer(
int rendererType = DEFAULT_RENDERER);
137 virtual void SetActiveCamera(
vtkCamera*);
167 void ResetCamera(
double bounds[6]);
168 void ResetCameraScreenSpace(
double offsetRatio = 0.9);
169 void ResetCameraScreenSpace(
double* bounds,
double offsetRatio = 0.9);
181 double LastRepresentationVisibleBounds[6];
208 vtkSetMacro(SuppressRendering,
bool);
209 vtkGetMacro(SuppressRendering,
bool);
210 vtkBooleanMacro(SuppressRendering,
bool);
222 vtkSetClampMacro(StillRenderImageReductionFactor,
int, 1, 20);
223 vtkGetMacro(StillRenderImageReductionFactor,
int);
233 vtkSetClampMacro(InteractiveRenderImageReductionFactor,
int, 1, 20);
234 vtkGetMacro(InteractiveRenderImageReductionFactor,
int);
243 vtkSetMacro(RemoteRenderingThreshold,
double);
244 vtkGetMacro(RemoteRenderingThreshold,
double);
253 vtkSetMacro(LODRenderingThreshold,
double);
254 vtkGetMacro(LODRenderingThreshold,
double);
264 vtkSetClampMacro(LODResolution,
double, 0.0, 1.0);
265 vtkGetMacro(LODResolution,
double);
275 vtkSetMacro(UseOutlineForLODRendering,
bool);
276 vtkGetMacro(UseOutlineForLODRendering,
bool);
287 void ConfigureCompressor(
const char* configuration);
293 virtual void ResetCameraClippingRange();
300 void SetUseLightKit(
bool enable);
301 vtkGetMacro(UseLightKit,
bool);
302 vtkBooleanMacro(UseLightKit,
bool);
306 void StreamingUpdate(
const double view_planes[24]);
307 void DeliverStreamedPieces(
unsigned int size,
unsigned int* representation_ids);
364 void SelectCells(
int region[4],
const char* array =
nullptr);
365 void SelectCells(
int region0,
int region1,
int region2,
int region3,
const char* array =
nullptr)
367 int r[4] = { region0, region1, region2, region3 };
368 this->SelectCells(r, array);
370 void SelectPoints(
int region[4],
const char* array =
nullptr);
371 void SelectPoints(
int region0,
int region1,
int region2,
int region3,
const char* array =
nullptr)
373 int r[4] = { region0, region1, region2, region3 };
374 this->SelectPoints(r, array);
376 void Select(
int field_association,
int region[4],
const char* array =
nullptr);
390 void SelectPolygonPoints(
int* polygon2DArray,
vtkIdType arrayLen);
391 void SelectPolygonCells(
int* polygon2DArray,
vtkIdType arrayLen);
392 void SelectPolygon(
int field_association,
int* polygon2DArray,
vtkIdType arrayLen);
408 vtkSetMacro(UseInteractiveRenderingForScreenshots,
bool);
409 vtkBooleanMacro(UseInteractiveRenderingForScreenshots,
bool);
410 vtkGetMacro(UseInteractiveRenderingForScreenshots,
bool);
417 vtkGetMacro(RemoteRenderingAvailable,
bool);
425 void NVPipeAvailableOn();
426 void NVPipeAvailableOff();
433 vtkGetMacro(UsedLODForLastRender,
bool);
441 void InvalidateCachedSelection();
453 static void SetRedistributionMode(
455 static void SetRedistributionModeToSplitBoundaryCells(
457 static void SetRedistributionModeToDuplicateBoundaryCells(
459 static void SetRedistributionModeToUniquelyAssignBoundaryCells(
464 static void SetNextStreamedPiece(
500 USE_BOUNDS_FOR_REDISTRIBUTION = 0x01,
501 DATA_IS_REDISTRIBUTABLE = 0x02,
502 USE_DATA_FOR_LOAD_BALANCING = 0x40,
504 static void SetOrderedCompositingConfiguration(
vtkInformation* info,
512 void SetMaxClipBounds(
double bds[6]);
519 void SetLockBounds(
bool nv);
520 vtkGetMacro(LockBounds,
bool);
528 static void SetDeliverToAllProcesses(
540 static void SetDeliverToClientAndRenderingProcesses(
vtkInformation* info,
553 static void SetRequiresDistributedRendering(
575 static void SetForceDataDistributionMode(
vtkInformation* info,
int flag);
594 void SetShowAnnotation(
bool val);
595 vtkSetMacro(UpdateAnnotation,
bool);
602 void SetAnnotationColor(
double r,
double g,
double b);
619 virtual void SetOrientationAxesInteractivity(
bool);
620 virtual void SetOrientationAxesVisibility(
bool);
622 void SetOrientationAxesLabelColor(
double r,
double g,
double b);
623 void SetOrientationAxesOutlineColor(
double r,
double g,
double b);
625 void SetOrientationAxesXColor(
double r,
double g,
double b);
626 void SetOrientationAxesYColor(
double r,
double g,
double b);
627 void SetOrientationAxesZColor(
double r,
double g,
double b);
629 void SetOrientationAxesXVisibility(
bool vis);
630 void SetOrientationAxesYVisibility(
bool vis);
631 void SetOrientationAxesZVisibility(
bool vis);
633 void SetOrientationAxesXLabelText(
const char* text);
634 void SetOrientationAxesYLabelText(
const char* text);
635 void SetOrientationAxesZLabelText(
const char* text);
642 void SetCameraOrientationWidgetVisibility(
bool visible);
643 void SetCameraOrientationWidgetSize(
int size);
644 void SetCameraOrientationWidgetPadding(
int padding[2]);
645 void SetCameraOrientationWidgetAnchor(
int anchor);
651 virtual void SetCenterAxesVisibility(
bool);
657 virtual void SetCenterOfRotation(
double x,
double y,
double z);
658 virtual void SetRotationFactor(
double factor);
665 void SetKeyLightWarmth(
double val);
666 void SetKeyLightIntensity(
double val);
667 void SetKeyLightElevation(
double val);
668 void SetKeyLightAzimuth(
double val);
669 void SetFillLightWarmth(
double val);
670 void SetKeyToFillRatio(
double val);
671 void SetFillLightElevation(
double val);
672 void SetFillLightAzimuth(
double val);
673 void SetBackLightWarmth(
double val);
674 void SetKeyToBackRatio(
double val);
675 void SetBackLightElevation(
double val);
676 void SetBackLightAzimuth(
double val);
677 void SetHeadLightWarmth(
double val);
678 void SetKeyToHeadRatio(
double val);
679 void SetMaintainLuminance(
int val);
686 vtkSetMacro(UseHiddenLineRemoval,
bool);
687 virtual void SetUseDepthPeeling(
int val);
688 virtual void SetUseDepthPeelingForVolumes(
bool val);
689 virtual void SetMaximumNumberOfPeels(
int val);
690 virtual void SetBackgroundTexture(
vtkTexture* val);
698 vtkSetMacro(UseRenderViewSettingsForBackground,
bool);
699 vtkGetMacro(UseRenderViewSettingsForBackground,
bool);
717 vtkSetClampMacro(BackgroundColorMode,
int, DEFAULT, STEREO_SKYBOX);
718 vtkSetVector3Macro(Background,
double);
719 vtkGetVector3Macro(Background,
double);
720 vtkSetVector3Macro(Background2,
double);
721 vtkGetVector3Macro(Background2,
double);
722 vtkSetMacro(UseEnvironmentLighting,
bool);
729 virtual void SetEnvironmentalBG(
double r,
double g,
double b);
730 virtual void SetEnvironmentalBG2(
double r,
double g,
double b);
731 virtual void SetEnvironmentalBGTexture(
vtkTexture* val);
732 virtual void SetGradientEnvironmentalBG(
int val);
733 virtual void SetTexturedEnvironmentalBG(
int val);
734 virtual void SetBackgroundMode(
int val);
749 void SetStereoCapableWindow(
int val);
750 void SetStereoRender(
int val);
751 vtkSetMacro(StereoType,
int);
752 vtkSetMacro(ServerStereoType,
int);
753 void SetMultiSamples(
int val);
754 void SetAlphaBitPlanes(
int val);
755 void SetStencilCapable(
int val);
761 void SetParallelProjection(
int mode);
767 virtual void SetCamera2DManipulators(
const int manipulators[9]);
768 virtual void SetCamera3DManipulators(
const int manipulators[9]);
770 virtual void SetReverseMouseWheelZoomDirection(
bool reverse);
771 virtual void SetMouseWheelZoomsToCursor(
bool value);
772 virtual void SetCamera2DMouseWheelMotionFactor(
double factor);
773 virtual void SetCamera3DMouseWheelMotionFactor(
double factor);
781 virtual void SynchronizeGeometryBounds();
795 virtual void UpdateLOD();
803 vtkGetMacro(UseLODForInteractiveRender,
bool);
812 vtkGetMacro(UseDistributedRenderingForRender,
bool);
821 vtkGetMacro(UseDistributedRenderingForLODRender,
bool);
830 vtkGetMacro(StillRenderProcesses, vtkTypeUInt32);
839 vtkGetMacro(InteractiveRenderProcesses, vtkTypeUInt32);
845 int GetDataDistributionMode(
bool low_res);
852 void Deliver(
int use_lod,
unsigned int size,
unsigned int* representation_ids)
override;
862 bool GetUseOrderedCompositing();
868 bool GetRenderEmptyImages();
874 vtkSetMacro(UseFXAA,
bool);
875 vtkGetMacro(UseFXAA,
bool);
882 void SetFXAARelativeContrastThreshold(
double val);
883 void SetFXAAHardContrastThreshold(
double val);
884 void SetFXAASubpixelBlendLimit(
double val);
885 void SetFXAASubpixelContrastThreshold(
double val);
886 void SetFXAAUseHighQualityEndpoints(
bool val);
887 void SetFXAAEndpointSearchIterations(
int val);
904 void SetUseToneMapping(
bool v);
905 vtkGetMacro(UseToneMapping,
bool);
906 void SetToneMappingType(
int);
907 void SetExposure(
double);
908 void SetContrast(
double);
909 void SetShoulder(
double);
910 void SetMidIn(
double);
911 void SetMidOut(
double);
912 void SetHdrMax(
double);
913 void SetUseACES(
bool);
914 void SetGenericFilmicPresets(
int t);
921 vtkSetMacro(UseSSAO,
bool);
922 vtkGetMacro(UseSSAO,
bool);
923 vtkSetMacro(UseSSAODefaultPresets,
bool);
924 vtkSetMacro(Radius,
double);
925 vtkSetMacro(KernelSize,
int);
926 vtkSetMacro(Bias,
double);
927 vtkSetMacro(Blur,
bool);
942 void AddPropToRenderer(
vtkProp* prop);
943 void RemovePropFromRenderer(
vtkProp* prop);
961 bool BeginValuePassForRendering(
int fieldAssociation,
const char* arrayName,
int component);
962 void EndValuePassForRendering();
970 void CaptureZBuffer();
978 void SetEnableOSPRay(
bool);
979 bool GetEnableOSPRay();
985 void SetShadows(
bool);
992 void SetAmbientOcclusionSamples(
int);
993 int GetAmbientOcclusionSamples();
999 void SetRouletteDepth(
int);
1000 int GetRouletteDepth();
1007 void SetSamplesPerPixel(
int);
1008 int GetSamplesPerPixel();
1014 void SetMaxFrames(
int);
1020 bool GetOSPRayContinueStreaming();
1025 void SetDenoise(
bool);
1033 void SetLightScale(
double);
1034 double GetLightScale();
1040 void SetOSPRayRendererType(std::string);
1045 void SetBackgroundNorth(
double x,
double y,
double z);
1046 void SetBackgroundEast(
double x,
double y,
double z);
1057 void SetTimeCacheSize(
int);
1058 int GetTimeCacheSize();
1088 static void SetDiscreteCameras(
1118 virtual void Render(
bool interactive,
bool skip_rendering);
1132 bool ShouldUseDistributedRendering(
double geometry_size,
bool using_lod);
1137 bool ShouldUseLODRendering(
double geometry);
1143 bool IsProcessRenderingGeometriesForCompositing(
bool using_distributed_rendering);
1154 virtual void UpdateCenterAxes();
1160 bool GetLocalProcessDoesRendering(
bool using_distributed_rendering);
1166 bool TestCollaborationCounter();
1172 void SynchronizeForCollaboration();
1178 virtual void BuildAnnotationText(ostream& str);
1185 vtkGetMacro(SynchronizationCounter,
unsigned int);
1192 vtkGetMacro(MakingSelection,
bool);
1199 virtual bool PrepareSelect(
int fieldAssociation,
const char* array =
nullptr);
1204 virtual void PostSelect(
vtkSelection* sel,
const char* array =
nullptr);
1210 virtual void UpdateBackground(
vtkRenderer* renderer =
nullptr);
1222 virtual void SetupAndSetRenderer(
vtkRenderer* ren);
1260 bool ReverseMouseWheelZoomDirection =
false;
1316 bool MakingSelection;
1317 int PreviousSwapBuffers;
1318 void OnSelectionChangedEvent();
1319 void OnPolygonSelectionEvent();
1324 bool RemoteRenderingAvailable;
1327 bool DistributedRenderingRequired;
1328 bool NonDistributedRenderingRequired;
1329 bool DistributedRenderingRequiredLOD;
1330 bool NonDistributedRenderingRequiredLOD;
1333 int ParallelProjection;
1336 bool UseHiddenLineRemoval;
1339 vtkInternals* Internals;
1342 void UpdateAnnotationText();
1347 int ServerStereoType;
1348 void UpdateStereoProperties();
1350 int BackgroundColorMode;
1351 bool UseEnvironmentLighting;
1352 bool UseRenderViewSettingsForBackground;
1354 double Background2[3];
1359 int ForceDataDistributionMode;
1360 int PreviousDiscreteCameraIndex;
1362 bool UseTexturedEnvironmentalBG;
static void SetRequiresDistributedRenderingLOD(vtkInformation *info, vtkPVDataRepresentation *repr, bool value)
Some representation only work when remote rendering or local rendering.
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