VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSprite.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvGraphics/DtQuad.h>
14 
15 namespace makVrv
16 {
17 
18  class DtQuad;
19  class DtPickableQuad;
20  class DtWidgetPicker;
21  class DtOverlayRenderer;
22 
26  {
27  public:
28 
30  DtSprite( DtOverlayRenderer& renderer, DtWidgetPicker& picker );
31 
33  DtSprite* clone( DtOverlayRenderer& renderer, DtWidgetPicker& picker ) const;
34 
36  ~DtSprite();
37 
42  void setEventsEnabled( bool enabled, unsigned long long userData = 0 );
43 
45  bool eventsEnabled() const;
46 
48  void setPosition( float x, float y, float z, float w = 0 );
49 
51  void setPoints( const float points[8] );
52 
54  void setRotation( float angle );
55 
57  void setFillType( DtQuad::FillType type );
58 
60  void setTextureParameter(
62  float left = 0.0f, float right = 1.0f, float bottom = 0.0f,
63  float top = 1.0f );
64 
66  DtOverlayResourceProvider::NativeResourceHandle textureParameter() const;
67 
69  void setColor( float r, float g, float b, float a );
70 
72  void setGroup( unsigned int group );
73 
75  unsigned int group() const;
76 
78  const DtQuad& quad() const;
79 
81  DtPickableQuad* findWidget();
82  const DtPickableQuad* findWidget() const;
83 
84  protected:
85 
89 
90  };
91 
92 }
void * NativeResourceHandle
Definition: DtOverlayResourceProvider.h:33
Contains the makVrv::DtQuad class declaration.
A synchronized Quad and Widget for a interactive visible 2D graphic.
Definition: DtSprite.h:25
The DtPickableQuad is a pickable widget that matches the Quad interface.
Definition: DtPickableWidget.h:83
DtWidgetPicker & myPicker
Definition: DtSprite.h:86
DtPickableQuad * myWidget
Definition: DtSprite.h:88
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
FillType
Definition: DtQuad.h:28
A single 2D quadrilateral.
Definition: DtQuad.h:24
DtQuad * myQuad
Definition: DtSprite.h:87
The picker class which allocates and does picking operatings on widgets.
Definition: DtWidgetPicker.h:32
The DtOverlayRenderer implements the overlay concept.
Definition: DtOverlayRenderer.h:23

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)