Plasma Engine  2.0
Loading...
Searching...
No Matches
Curve1DAsset.h
1#pragma once
2
3#include <EditorFramework/Assets/SimpleAssetDocument.h>
4#include <GuiFoundation/Widgets/CurveEditData.h>
5
6class plCurve1D;
7
8class plCurve1DAssetDocument : public plSimpleAssetDocument<plCurveGroupData>
9{
11
12public:
15
18 void FillCurve(plUInt32 uiCurveIdx, plCurve1D& out_result) const;
19
20 plUInt32 GetCurveCount() const;
21
22 void WriteResource(plStreamWriter& inout_stream) const;
23
24protected:
25 virtual plTransformStatus InternalTransformAsset(plStreamWriter& stream, plStringView sOutputTag, const plPlatformProfile* pAssetProfile,
26 const plAssetFileHeader& AssetHeader, plBitflags<plTransformFlags> transformFlags) override;
28};
The thumbnail info containing the hash of the file is appended to assets. The serialized size of this...
Definition AssetDocument.h:49
Simple class to handle asset file headers (the very first bytes in all transformed asset files)
Definition AssetFileHeader.h:8
Definition Curve1DAsset.h:9
virtual plTransformStatus InternalCreateThumbnail(const ThumbnailInfo &ThumbnailInfo) override
Override this function to generate a thumbnail. Only called if GetAssetFlags returns plAssetDocumentF...
Definition Curve1DAsset.cpp:50
void FillCurve(plUInt32 uiCurveIdx, plCurve1D &out_result) const
Fills out the plCurve1D structure with an exact copy of the data in the asset. Does NOT yet sort the ...
Definition Curve1DAsset.cpp:16
virtual plTransformStatus InternalTransformAsset(plStreamWriter &stream, plStringView sOutputTag, const plPlatformProfile *pAssetProfile, const plAssetFileHeader &AssetHeader, plBitflags< plTransformFlags > transformFlags) override
Override this and write the transformed file for the given szOutputTag into the given stream.
Definition Curve1DAsset.cpp:44
A 1D curve for animating a single value over time.
Definition Curve1D.h:29
Definition PlatformProfile.h:25
Definition SimpleAssetDocument.h:23
Interface for binary out (write) streams.
Definition Stream.h:107
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82
Definition Declarations.h:114