source-engine-2018-hl2_src/public/movieobjects/dmemorphoperator.h
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

54 lines
1.5 KiB
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// The morph operator class - sets morph target weights on meshes
//
//=============================================================================
#ifndef DMEMORPHOPERATOR_H
#define DMEMORPHOPERATOR_H
#ifdef _WIN32
#pragma once
#endif
#include "datamodel/dmelement.h"
#include "datamodel/dmattribute.h"
#include "datamodel/dmattributevar.h"
#include "movieobjects/dmeoperator.h"
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CDmeMesh;
//-----------------------------------------------------------------------------
// A class representing a camera
//-----------------------------------------------------------------------------
class CDmeMorphOperator : public CDmeOperator
{
DEFINE_ELEMENT( CDmeMorphOperator, CDmeOperator );
public:
virtual void Operate();
// need this until we have the EditApply message queue
void OnAttributeChanged( CDmAttribute *pAttribute );
virtual void GetInputAttributes ( CUtlVector< CDmAttribute * > &attrs );
virtual void GetOutputAttributes( CUtlVector< CDmAttribute * > &attrs );
// accessors
uint NumDeltaStateWeights();
CDmElement *GetDeltaStateWeight( uint i );
CDmeMesh *GetMesh();
protected:
CDmaElement< CDmeMesh > m_mesh;
CDmaElementArray< CDmElement > m_deltaStateWeights;
CDmaString m_baseStateName;
};
#endif // DMEMORPHOPERATOR_H