Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_LIGHT_H
17 #define SURGSIM_GRAPHICS_LIGHT_H
76 virtual bool setGroup(std::shared_ptr<SurgSim::Graphics::Group> group) = 0;
80 virtual std::shared_ptr<SurgSim::Graphics::Group>
getGroup() = 0;
virtual void setLinearAttenuation(double val)=0
Sets linear attenuation.
virtual SurgSim::Math::Vector4d getSpecularColor()=0
Gets specular color.
Light(const std::string &name)
Constructor.
Definition: Light.h:53
virtual std::shared_ptr< SurgSim::Graphics::Group > getGroup()=0
Gets the group that this light has been assigned to.
virtual double getLinearAttenuation()=0
Gets linear attenuation.
#define SURGSIM_ADD_SERIALIZABLE_PROPERTY(class, type, property, getter, setter)
A macro to register a serializable property, this needs to support reading, writing and all the conve...
Definition: Accessible.h:225
Abstract interface for a light, a light needs to be assigned to a group to be active,...
Definition: Light.h:48
Definition: CompoundShapeToGraphics.cpp:29
virtual std::string getLightGroupReference()=0
Gets the name of the group this light should operate on.
Eigen::Matrix< double, 4, 1 > Vector4d
A 4D vector of doubles.
Definition: Vector.h:61
virtual void setQuadraticAttenuation(double val)=0
Sets quadratic attenuation.
virtual void setLightGroupReference(const std::string &name)=0
Sets the name of the group that this light should work on.
virtual SurgSim::Math::Vector4d getDiffuseColor()=0
Gets diffuse color.
virtual void setSpecularColor(const SurgSim::Math::Vector4d &color)=0
Sets specular color of this light.
virtual double getQuadraticAttenuation()=0
Gets quadratic attenuation.
virtual ~Light()
Definition: Light.h:69
virtual bool setGroup(std::shared_ptr< SurgSim::Graphics::Group > group)=0
Sets the group for this light, setting nullptr here will remove the light from its current group.
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:39
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
virtual void setDiffuseColor(const SurgSim::Math::Vector4d &color)=0
Sets diffuse color of this light.
virtual void setConstantAttenuation(double val)=0
Sets constant attenuation.
virtual double getConstantAttenuation()=0
Gets constant attenuation.