CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GfxCache.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef _CLOUDGFXCACHE_INCLUDED_
25#define _CLOUDGFXCACHE_INCLUDED_ /* { Secret } */
26
27#include "RxModule.h"
28#include "Gs/Gs.h"
29#include "MemoryStream.h"
30#include "StringArray.h"
31
32#include "TD_PackPush.h"
33
34class CloudGfxCache;
36
37
38class CloudGfxCache : public OdTfStorage {
39public:
40 class LayoutData;
42 class VectorizerCtx;
44
47
48 class LayoutData : public OdRxObject {
49 public:
52 virtual void putState(OdStreamBuf* buf) = 0;
53
55
56 virtual void delGfx(const OdUInt64 handle) = 0;
57 };
58
59 class VectorizerCtx : public OdRxObject {
60 public:
61 virtual void setViewCtx(const OdGsView& view, double simplfTol, double sewTol) = 0;
62 virtual OdStreamBufPtr newGfxBuf(const OdUInt64 handle) { return OdStreamBufPtr(); };
63 virtual void putGfx(const OdUInt64 handle, OdStreamBuf& gfxData,
64 const OdUInt32 awareFlags, const OdGeExtents3d& extents,
65 const OdStringArray& fonts) = 0;
66 virtual OdStreamBufPtr getGfx(const OdUInt64 handle) = 0;
67 virtual void getFonts(const OdUInt64 handle, OdStringArray& fontsIn) = 0;
68 virtual bool getGfx(const OdUInt64 handle, OdUInt32& awareFlags, OdGeExtents3d& extents) = 0;
69 virtual void delGfx(const OdUInt64 handle) = 0;
70 };
71};
72
73#include "TD_PackPop.h"
74
75
76#endif //_CLOUDGFXCACHE_INCLUDED_
OdSmartPtr< OdStreamBuf > OdStreamBufPtr
OdSmartPtr< CloudGfxCache > CloudGfxCachePtr
Definition: GfxCache.h:35
unsigned int OdUInt32
virtual OdStreamBufPtr newStateBuf()
Definition: GfxCache.h:51
virtual VectorizerCtxPtr vectorizerCtx()=0
virtual OdStreamBufPtr readState()=0
virtual void putState(OdStreamBuf *buf)=0
virtual void delGfx(const OdUInt64 handle)=0
virtual void setViewCtx(const OdGsView &view, double simplfTol, double sewTol)=0
virtual void getFonts(const OdUInt64 handle, OdStringArray &fontsIn)=0
virtual void putGfx(const OdUInt64 handle, OdStreamBuf &gfxData, const OdUInt32 awareFlags, const OdGeExtents3d &extents, const OdStringArray &fonts)=0
virtual void delGfx(const OdUInt64 handle)=0
virtual bool getGfx(const OdUInt64 handle, OdUInt32 &awareFlags, OdGeExtents3d &extents)=0
virtual OdStreamBufPtr getGfx(const OdUInt64 handle)=0
virtual OdStreamBufPtr newGfxBuf(const OdUInt64 handle)
Definition: GfxCache.h:62
virtual OdStringArray layoutNames()=0
virtual LayoutDataPtr layoutData(const OdString &name)=0
OdSmartPtr< LayoutData > LayoutDataPtr
Definition: GfxCache.h:41
OdSmartPtr< VectorizerCtx > VectorizerCtxPtr
Definition: GfxCache.h:43
Definition: Gs.h:140
static OdMemoryStreamPtr createNew(OdUInt32 pageDataSize=0x800)
GLuint const GLchar * name
Definition: gles2_ext.h:265