Blob Blame Raw
#pragma once

#ifndef TSTEPPARAM_H
#define TSTEPPARAM_H

#include "tdoubleparam.h"
#include "texception.h"
#include "tundo.h"
#include "tparamundo.h"
#include <set>

#undef DVAPI
#undef DVVAR
#ifdef TNZCORE_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif

class DVAPI TDoubleStepParam : public TDoubleParam
{
public:
	TDoubleStepParam(double v = 0.0);
	TDoubleStepParam(const TDoubleParam &src);
	~TDoubleStepParam();

	TParam *clone() const { return new TDoubleStepParam(*this); }

	double getValue(double frame, bool cropped = true) const;

	PERSIST_DECLARATION(TDoubleStepParam)
};

DEFINE_PARAM_SMARTPOINTER(TDoubleStepParam, double)

#endif