3 Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
5 This file is part of Fail.
7 Fail is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 3
9 as published by the Free Software Foundation.
11 Fail is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef FAIL_MANIPULATORS_ARROW_H_
20 #define FAIL_MANIPULATORS_ARROW_H_
22 #include "core/core.h"
23 #include "manipulators/manipulators_export.h"
24 #include "DraggableManip.h"
25 #include "scenegraph/Material.h"
27 namespace fail
{ namespace manipulators
29 class FLMANIPULATORS_EXPORT Arrow
: public DraggableManip
32 Arrow( Pointer
< ContainerManipulator
> pParent
,
33 Pointer
< scenegraph::Material
> pMaterial
,
34 float Length
, float Radius
);
36 Arrow( Pointer
< ContainerManipulator
> pParent
,
37 Pointer
< scenegraph::Material
> pMaterial
,
38 float Length
, float Radius
,
39 Pointer
< scenegraph::Frame
> pFrame
);
41 const Pointer
< scenegraph::Material
>& getpMaterial() const { return m_pMaterial
; }
42 void setpMaterial( const Pointer
< scenegraph::Material
>& x
) { m_pMaterial
= x
; }
44 const float& getLength() const { return m_Length
; }
45 void setLength( const float& x
) { m_Length
= x
; }
47 const float& getRadius() const { return m_Radius
; }
48 void setRadius( const float& x
) { m_Radius
= x
; }
50 virtual void buildSceneGraph();
53 Pointer
< scenegraph::Material
> m_pMaterial
;