Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::ZoomAction Class Reference

#include <action.h>

Inheritance diagram for cil::ZoomAction:
cil::MouseWheeledAction cil::MouseAction

Public Member Functions

 ZoomAction (std::shared_ptr< MouseWheeledAction > successor, std::shared_ptr< Camera > camera, std::shared_ptr< Vector2i > windowSize)
 
virtual bool wheel (const ivec2 &coord, bool up)
 
- Public Member Functions inherited from cil::MouseWheeledAction
 MouseWheeledAction (std::shared_ptr< MouseWheeledAction > successor=nullptr)
 
virtual ~MouseWheeledAction ()
 
virtual Type type () const
 
MouseWheeledActionmouseWheel (const ivec2 &coord, bool up)
 
- Public Member Functions inherited from cil::MouseAction
 MouseAction (std::shared_ptr< MouseAction > successor=nullptr)
 
virtual ~MouseAction ()
 
std::shared_ptr< MouseActionsuccessor () const
 
void setSuccessor (std::shared_ptr< MouseAction > successor)
 

Protected Attributes

std::shared_ptr< Cameram_camera
 
std::shared_ptr< Vector2im_windowSize
 
- Protected Attributes inherited from cil::MouseAction
std::shared_ptr< MouseActionm_successor
 

Additional Inherited Members

- Public Types inherited from cil::MouseAction
enum class  Type {
  Hover , Click , Drag , Hold ,
  Wheel
}
 
- Public Attributes inherited from cil::MouseAction
std::string name
 

Constructor & Destructor Documentation

◆ ZoomAction()

cil::ZoomAction::ZoomAction ( std::shared_ptr< MouseWheeledAction > successor,
std::shared_ptr< Camera > camera,
std::shared_ptr< Vector2i > windowSize )

Member Function Documentation

◆ wheel()

virtual bool cil::ZoomAction::wheel ( const ivec2 & coord,
bool up )
virtual

Member Data Documentation

◆ m_camera

std::shared_ptr<Camera> cil::ZoomAction::m_camera
protected

◆ m_windowSize

std::shared_ptr<Vector2i> cil::ZoomAction::m_windowSize
protected