Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_SCREENSPACEQUADREPRESENTATION_H
17 #define SURGSIM_GRAPHICS_SCREENSPACEQUADREPRESENTATION_H
62 virtual void setSize(
double width,
double height) = 0;
67 virtual void getSize(
double* width,
double* height)
const = 0;
74 virtual bool setTexture(std::shared_ptr<Texture> texture) = 0;
virtual bool setTexture(std::shared_ptr< Texture > texture)=0
Sets a Texture for this quad, this should replace a current texture, this is a convenience function a...
~ScreenSpaceQuadRepresentation()
Definition: ScreenSpaceQuadRepresentation.h:46
Eigen::Transform< double, 3, Eigen::Isometry > RigidTransform3d
A 3D rigid (isometric) transform, represented as doubles.
Definition: RigidTransform.h:46
virtual void setSize(double width, double height)=0
Sets the size for the quad in screen coordinates.
virtual void getLocation(double *x, double *y)=0
Gets the location in screen space.
ScreenSpaceQuadRepresentation(const std::string name)
Constructor.
Definition: ScreenSpaceQuadRepresentation.h:42
Definition: CompoundShapeToGraphics.cpp:29
A quad to display on the screen in screen space coordinates, use setPose() to set the position but x,...
Definition: ScreenSpaceQuadRepresentation.h:36
virtual void getSize(double *width, double *height) const =0
Gets the size of the quad.
virtual void setLocation(double x, double y)=0
Sets the location in screen space.
virtual SurgSim::Math::RigidTransform3d getLocalPose() const
Get the pose of the representation with respect to the Scene Element.
Definition: Representation.cpp:67
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:39
SurgSim::Math::RigidTransform3d getPose() const override
Definition: ScreenSpaceQuadRepresentation.h:77