Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef SUBSTANCE_SOURCE_ACTOR_H
00012 #define SUBSTANCE_SOURCE_ACTOR_H
00013
00014 #include "Apex.h"
00015 #include "Shape.h"
00016
00017 namespace nvidia
00018 {
00019 namespace apex
00020 {
00021
00022 class SubstanceSourceAsset;
00023
00024
00028 class SubstanceSourceActor : public Actor
00029 {
00030 protected:
00031 virtual ~SubstanceSourceActor() {}
00032
00033 public:
00035 virtual SubstanceSourceAsset* getSubstanceSourceAsset() const = 0;
00036
00042 virtual void setEnabled(bool enable) = 0;
00043
00045 virtual bool isEnabled() const = 0;
00046
00048 virtual bool intersectAgainstAABB(PxBounds3) = 0;
00049
00051 virtual Shape* getShape() const = 0;
00052
00054 virtual BoxShape* getBoxShape() = 0;
00055
00057 virtual SphereShape* getSphereShape() = 0;
00058
00060 virtual float getAverageDensity() const = 0;
00061
00063 virtual float getStdDensity() const = 0;
00064
00066 virtual void setDensity(float averageDensity, float stdDensity) = 0;
00067
00069 virtual void setCurrentScale(float scale) = 0;
00070
00072 virtual float getCurrentScale(void) const = 0;
00073
00074 virtual void release() = 0;
00075 };
00076
00077
00078 }
00079 }
00080
00081 #endif