PeriDyno 1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SquareEmitter.h
Go to the documentation of this file.
1
16#pragma once
17#include "ParticleEmitter.h"
18
19#include "Topology/EdgeSet.h"
20
21namespace dyno
22{
23 class SquareEmitter : public ParticleEmitter
24 {
26 public:
28 ~SquareEmitter() override;
29
30 public:
31 DEF_VAR(float, Width, 0.1, "Emitter width");
32 DEF_VAR(float, Height, 0.1, "Emitter height");
33
34 DEF_INSTANCE_STATE(EdgeSet, Outline, "Outline of the emitter");
35
36 protected:
37 void resetStates() override;
38
39 void generateParticles() override;
40
41 private:
43 };
44}
#define DECLARE_CLASS(name)
Definition Object.h:65
void resetStates() override
~SquareEmitter() override
DEF_VAR(float, Width, 0.1, "Emitter width")
DEF_VAR(float, Height, 0.1, "Emitter height")
DEF_INSTANCE_STATE(EdgeSet, Outline, "Outline of the emitter")
void generateParticles() override
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25