VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFxForceInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 namespace makVrv
15 {
20  {
21  public:
22  enum ForceType
23  {
32  };
33 
35  {
39  };
40 
42  virtual ~DtFxForceInterface() {};
43 
45  virtual void setPosition(double x, double y, double z) = 0;
46 
48  virtual void setRadius(float radius) = 0;
49 
51  virtual void setForceType(ForceType falloff_type) = 0;
52 
54  virtual void setFalloffType(FalloffType falloff_type) = 0;
55 
57  virtual void setForceStrength(float forceStr) = 0;
58 
60  virtual void setForceDirection(float x, float y, float z) = 0;
61  };
62 
63 }
class that allows clients to add global forces (no export of virtual base class)
Definition: DtFxForceInterface.h:19
Definition: DtFxForceInterface.h:36
virtual void setForceType(ForceType falloff_type)=0
sets the type of force
virtual ~DtFxForceInterface()
DTOR.
Definition: DtFxForceInterface.h:42
Definition: DtFxForceInterface.h:29
Definition: DtFxForceInterface.h:38
Definition: DtFxForceInterface.h:37
Definition: DtFxForceInterface.h:26
Definition: DtFxForceInterface.h:24
Definition: DtFxForceInterface.h:27
Definition: DtFxForceInterface.h:28
Definition: DtFxForceInterface.h:25
Definition: DtFxForceInterface.h:31
ForceType
Definition: DtFxForceInterface.h:22
virtual void setForceStrength(float forceStr)=0
sets the force strength
virtual void setRadius(float radius)=0
sets the volume of the force, only used for None falloff type, other ones will be derived base on fal...
virtual void setForceDirection(float x, float y, float z)=0
currently only used for wind
Contains DLL export macros.
virtual void setPosition(double x, double y, double z)=0
sets the position of the force
FalloffType
Definition: DtFxForceInterface.h:34
virtual void setFalloffType(FalloffType falloff_type)=0
sets the falloff type
Definition: DtFxForceInterface.h:30

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)