25 #ifndef ODTRVISRENDERCLIENT
26 #define ODTRVISRENDERCLIENT
154 OdUInt32 nSearchBase = 0, nSearchCur;
157 for ( ; nSearchLimit != 0; nSearchLimit >>= 1)
159 nSearchCur = nSearchBase + (nSearchLimit >> 1);
161 if (!nCmp)
return nSearchCur;
162 if (nCmp > 0) { nSearchBase = nSearchCur + 1; nSearchLimit--; }
180 OdUInt32 nSearchBase = 0, nSearchCur = 0;
183 for ( ; nSearchLimit != 0; nSearchLimit >>= 1)
185 nSearchCur = nSearchBase + (nSearchLimit >> 1);
187 if (!nCmp) {
m_dic[nSearchCur].m_pValue = pValue;
return; }
188 if (nCmp > 0) { nSearchBase = nSearchCur + 1; nSearchLimit--; }
190 if (!(pDic[nSearchCur].m_propName.compare(pPropName) < 0))
234 template <
typename RCInterface = OdTrVisRenderClient>
int compare(const OdChar *otherString) const
virtual bool hasProperty(const OdChar *pPropName) const =0
virtual bool useSceneGraph() const
virtual bool hasDirectRenderBuffer() const
virtual bool useVisualStyles() const
virtual OdUInt8 * getDirectRenderBuffer(OdUInt32 *, OdUInt32 *, OdUInt32 *=NULL, OdUInt32 *=NULL)
virtual bool useCompositeMetafiles() const
virtual ~OdTrVisRenderClient()
virtual bool usePartialUpdate() const
virtual OdUInt32 antiAliasingMode() const
virtual const OdTrVisSharingProviderClient * sharingProvider() const
virtual const OdTrVisTtfFontsCacheClient * ttfFontsCache() const
virtual void emitWarning(const char *pWarn)=0
virtual int outputWindowWidth() const =0
virtual OdUInt32 blendingMode() const
virtual OdRxVariantValue getProperty(const OdChar *pPropName) const =0
virtual bool useOverlays() const
virtual int outputWindowHeight() const =0
virtual void emitError(const char *pError)=0
virtual void setProperty(const OdChar *pPropName, OdRxVariantValue pValue)=0
virtual void setProperty(const OdChar *pPropName, OdRxVariantValue pValue)
OdTrVisRenderClientPropsDic m_props
virtual bool hasProperty(const OdChar *pPropName) const
virtual OdRxVariantValue getProperty(const OdChar *pPropName) const
OdRxVariantValue getPropAt(OdUInt32 nProp) const
void setProp(const OdChar *pPropName, OdRxVariantValue pValue)
OdVector< DicPair > DicPairsArray
OdRxVariantValue getProp(const OdChar *pPropName) const
void killPropAt(OdUInt32 nProp)
OdTrVisRenderClientPropsDic()
void killProp(const OdChar *pPropName)
bool hasProp(const OdChar *pPropName) const
OdUInt32 numProps() const
OdUInt32 findProp(const OdChar *pPropName) const
void setPropAt(OdUInt32 nProp, OdRxVariantValue pValue)
virtual int outputWindowWidth() const
virtual bool useVisualStyles() const
virtual OdUInt8 * getDirectRenderBuffer(OdUInt32 *pWidth, OdUInt32 *pHeight, OdUInt32 *pFormat=NULL, OdUInt32 *pAlignment=NULL)
virtual void emitWarning(const char *pWarn)
virtual void setProperty(const OdChar *pPropName, OdRxVariantValue pValue)
OdTrVisRenderClientWrapper(OdTrVisRenderClient *pRedirection=NULL)
virtual bool usePartialUpdate() const
virtual bool hasProperty(const OdChar *pPropName) const
virtual OdRxVariantValue getProperty(const OdChar *pPropName) const
bool hasRedirection() const
virtual const OdTrVisTtfFontsCacheClient * ttfFontsCache() const
virtual bool useOverlays() const
virtual int outputWindowHeight() const
virtual void emitError(const char *pError)
virtual OdUInt32 blendingMode() const
virtual bool useSceneGraph() const
virtual bool hasDirectRenderBuffer() const
void setRedirection(OdTrVisRenderClient *pRedirection)
OdTrVisRenderClient * m_pRedirection
OdTrVisRenderClient * redirection() const
virtual OdUInt32 antiAliasingMode() const
virtual const OdTrVisSharingProviderClient * sharingProvider() const
virtual bool useCompositeMetafiles() const
void push_back(const T &value)
OdVector & insertAt(size_type index, const T &value)
OdVector & removeAt(size_type index)
DicPair(const OdChar *pPropName, OdRxVariantValue pValue)
OdRxVariantValue m_pValue