Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
AimHelperHudget Class Reference
Inheritance diagram for AimHelperHudget:
[legend]
Collaboration diagram for AimHelperHudget:
[legend]

Public Member Functions

 AimHelperHudget (HUD *hud)
 
const glm::vec3 & targetPoint () const
 
virtual void update (float deltaSec) override
 
virtual void draw ()
 
virtual bool isAt (const Ray &ray) const override
 
- Public Member Functions inherited from CircularHudget
 CircularHudget (HUD *hud, float radius)
 
float radius () const
 
- Public Member Functions inherited from Hudget
 Hudget (HUD *hud)
 
HUDhud ()
 
bool visible () const
 
void setVisible (bool visible)
 
bool pressed () const
 
bool hovered () const
 
bool clicked () const
 
bool released () const
 
bool entered () const
 
bool left () const
 
virtual void onClick (ClickType clickType)
 
virtual void pointerAt (const Ray &ray, bool pressed)
 
void setRelativeDistance (float relativeDistance)
 
void pointToWorldPoint (const glm::vec3 &worldPoint)
 
void pointToLocalPoint (const glm::vec3 &localPoint)
 
glm::vec3 localDirection () const
 
glm::vec3 worldDirection () const
 
float directionAngle () const
 
void setDirectionAngle (float directionAngle)
 
glm::vec3 worldPosition () const
 
glm::vec3 worldPosition (const glm::vec3 &localVector) const
 
glm::quat worldOrientation () const
 
glm::quat worldOrientation (const glm::vec3 &localVector) const
 

Protected Member Functions

void calculateTargetPoint (WorldObject *targetObject)
 
void calculatedDirection ()
 

Protected Attributes

std::unique_ptr
< AimHelperHudgetVoxels
m_voxels
 
glm::vec3 m_targetPoint
 
glm::vec3 m_smoothTargetPoint
 
WorldObjectm_lastTargetWorldObject
 
bool m_lastVisible
 
Range m_distanceRange
 
- Protected Attributes inherited from CircularHudget
float m_radius
 
- Protected Attributes inherited from Hudget
HUDm_hud
 
glm::vec3 m_direction
 
float m_directionAngle
 
float m_relativeDistance
 
bool m_visible
 
bool m_pressed
 
bool m_hovered
 
bool m_clicked
 
bool m_released
 
bool m_entered
 
bool m_left
 

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