Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::PointLightInteractionHandler Class Reference
Inheritance diagram for inviwo::PointLightInteractionHandler:

Public Member Functions

const CameragetCamera ()
virtual double getFarPlaneDist () const override
virtual dvec3 getLookFrom () const override
virtual dvec3 getLookFromMaxValue () const override
virtual dvec3 getLookFromMinValue () const override
virtual dvec3 getLookTo () const override
virtual dvec3 getLookToMaxValue () const override
virtual dvec3 getLookToMinValue () const override
virtual dvec3 getLookUp () const override
virtual double getNearPlaneDist () const override
virtual dvec3 getNormalizedDeviceFromNormalizedScreenAtFocusPointDepth (const dvec2 &normalizedScreenCoord) const override
virtual dvec3 getWorldPosFromNormalizedDeviceCoords (const dvec3 &ndcCoords) const override
virtual void invokeEvent (Event *event) override
void onCameraChanged ()
 PointLightInteractionHandler (PositionProperty *, CameraProperty *, BoolProperty *, FloatVec2Property *)
void setHandleEventsOptions (int)
void setLightPosFromScreenCoords (const vec2 &normalizedScreenCoord)
 Changes the direction of the light source, relative to the camera, such that it acts as if it comes from the direction where the user clicked on the screen.
virtual TrackballObjectsetLook (dvec3 lookFrom, dvec3 lookTo, dvec3 lookUp) override
virtual TrackballObjectsetLookFrom (dvec3 lookFrom) override
virtual TrackballObjectsetLookTo (dvec3 lookTo) override
virtual TrackballObjectsetLookUp (dvec3 lookUp) override
virtual void zoom (const ZoomOptions &opts) override

Member Function Documentation

◆ getFarPlaneDist()

virtual double inviwo::PointLightInteractionHandler::getFarPlaneDist ( ) const
nodiscardoverridevirtual

◆ getLookFrom()

virtual dvec3 inviwo::PointLightInteractionHandler::getLookFrom ( ) const
nodiscardoverridevirtual

◆ getLookFromMaxValue()

virtual dvec3 inviwo::PointLightInteractionHandler::getLookFromMaxValue ( ) const
nodiscardoverridevirtual

◆ getLookFromMinValue()

virtual dvec3 inviwo::PointLightInteractionHandler::getLookFromMinValue ( ) const
nodiscardoverridevirtual

◆ getLookTo()

virtual dvec3 inviwo::PointLightInteractionHandler::getLookTo ( ) const
nodiscardoverridevirtual

◆ getLookToMaxValue()

virtual dvec3 inviwo::PointLightInteractionHandler::getLookToMaxValue ( ) const
nodiscardoverridevirtual

◆ getLookToMinValue()

virtual dvec3 inviwo::PointLightInteractionHandler::getLookToMinValue ( ) const
nodiscardoverridevirtual

◆ getLookUp()

virtual dvec3 inviwo::PointLightInteractionHandler::getLookUp ( ) const
nodiscardoverridevirtual

◆ getNearPlaneDist()

virtual double inviwo::PointLightInteractionHandler::getNearPlaneDist ( ) const
nodiscardoverridevirtual

◆ getNormalizedDeviceFromNormalizedScreenAtFocusPointDepth()

virtual dvec3 inviwo::PointLightInteractionHandler::getNormalizedDeviceFromNormalizedScreenAtFocusPointDepth ( const dvec2 & normalizedScreenCoord) const
nodiscardoverridevirtual

◆ getWorldPosFromNormalizedDeviceCoords()

virtual dvec3 inviwo::PointLightInteractionHandler::getWorldPosFromNormalizedDeviceCoords ( const dvec3 & ndcCoords) const
nodiscardoverridevirtual

◆ invokeEvent()

virtual void inviwo::PointLightInteractionHandler::invokeEvent ( Event * event)
overridevirtual

Reimplemented from inviwo::EventListener.

◆ setLightPosFromScreenCoords()

void inviwo::PointLightInteractionHandler::setLightPosFromScreenCoords ( const vec2 & normalizedScreenCoord)

Changes the direction of the light source, relative to the camera, such that it acts as if it comes from the direction where the user clicked on the screen.

Intersects a sphere covering the scene and places the light source in the direction of the intersection point but at the same distance from the origin as before. If the intersection is outside the sphere the light source will be placed perpendicular to the camera at the same distance as before.

Parameters
normalizedScreenCoordCoordinates in [0 1], where y coordinate is 0 at top of screen.

◆ setLook()

virtual TrackballObject & inviwo::PointLightInteractionHandler::setLook ( dvec3 lookFrom,
dvec3 lookTo,
dvec3 lookUp )
overridevirtual

◆ setLookFrom()

virtual TrackballObject & inviwo::PointLightInteractionHandler::setLookFrom ( dvec3 lookFrom)
overridevirtual

◆ setLookTo()

virtual TrackballObject & inviwo::PointLightInteractionHandler::setLookTo ( dvec3 lookTo)
overridevirtual

◆ setLookUp()

virtual TrackballObject & inviwo::PointLightInteractionHandler::setLookUp ( dvec3 lookUp)
overridevirtual

◆ zoom()

virtual void inviwo::PointLightInteractionHandler::zoom ( const ZoomOptions & opts)
overridevirtual

The documentation for this class was generated from the following file:
  • modules/base/include/modules/base/processors/pointlightsourceprocessor.h