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

Public Member Functions

 PointLightInteractionHandler (PositionProperty *, CameraProperty *, BoolProperty *, FloatVec2Property *)
 
virtual std::string getClassIdentifier () const override
 
const CameragetCamera ()
 
virtual void invokeEvent (Event *event) override
 
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.
 
void onCameraChanged ()
 
virtual vec3 getLookTo () const override
 
virtual vec3 getLookFrom () const override
 
virtual vec3 getLookUp () const override
 
virtual TrackballObjectsetLookTo (vec3 lookTo) override
 
virtual TrackballObjectsetLookFrom (vec3 lookFrom) override
 
virtual TrackballObjectsetLookUp (vec3 lookUp) override
 
virtual vec3 getLookFromMinValue () const override
 
virtual vec3 getLookFromMaxValue () const override
 
virtual vec3 getLookToMinValue () const override
 
virtual vec3 getLookToMaxValue () const override
 
virtual TrackballObjectsetLook (vec3 lookFrom, vec3 lookTo, vec3 lookUp) override
 
virtual float getNearPlaneDist () const override
 
virtual float getFarPlaneDist () const override
 
virtual void zoom (float factor, Bounded bounded) override
 
virtual vec3 getWorldPosFromNormalizedDeviceCoords (const vec3 &ndcCoords) const override
 
virtual vec3 getNormalizedDeviceFromNormalizedScreenAtFocusPointDepth (const vec2 &normalizedScreenCoord) const override
 
- Public Member Functions inherited from inviwo::InteractionHandler
virtual void serialize (Serializer &s) const
 
virtual void deserialize (Deserializer &d)
 
- Public Member Functions inherited from inviwo::EventListener
- Public Member Functions inherited from inviwo::Serializable
- Public Member Functions inherited from inviwo::TrackballObject

Additional Inherited Members

- Public Types inherited from inviwo::TrackballObject
enum class  Bounded { Yes , No }
 

Member Function Documentation

◆ getClassIdentifier()

virtual std::string inviwo::PointLightInteractionHandler::getClassIdentifier ( ) const
overridevirtual

◆ getFarPlaneDist()

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

◆ getLookFrom()

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

◆ getLookFromMaxValue()

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

◆ getLookFromMinValue()

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

◆ getLookTo()

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

◆ getLookToMaxValue()

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

◆ getLookToMinValue()

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

◆ getLookUp()

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

◆ getNearPlaneDist()

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

◆ getNormalizedDeviceFromNormalizedScreenAtFocusPointDepth()

virtual vec3 inviwo::PointLightInteractionHandler::getNormalizedDeviceFromNormalizedScreenAtFocusPointDepth ( const vec2 & normalizedScreenCoord) const
nodiscardoverridevirtual

◆ getWorldPosFromNormalizedDeviceCoords()

virtual vec3 inviwo::PointLightInteractionHandler::getWorldPosFromNormalizedDeviceCoords ( const vec3 & 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 ( vec3 lookFrom,
vec3 lookTo,
vec3 lookUp )
overridevirtual

◆ setLookFrom()

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

◆ setLookTo()

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

◆ setLookUp()

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

◆ zoom()

virtual void inviwo::PointLightInteractionHandler::zoom ( float factor,
Bounded bounded )
overridevirtual

The documentation for this class was generated from the following file: