25#ifndef ODTRVISRENDERCLIENT
26#define ODTRVISRENDERCLIENT
153 bool =
false) {
return NULL; }
178 OdUInt32 nSearchBase = 0, nSearchCur;
181 for ( ; nSearchLimit != 0; nSearchLimit >>= 1)
183 nSearchCur = nSearchBase + (nSearchLimit >> 1);
185 if (!nCmp)
return nSearchCur;
186 if (nCmp > 0) { nSearchBase = nSearchCur + 1; nSearchLimit--; }
204 OdUInt32 nSearchBase = 0, nSearchCur = 0;
207 for ( ; nSearchLimit != 0; nSearchLimit >>= 1)
209 nSearchCur = nSearchBase + (nSearchLimit >> 1);
211 if (!nCmp) {
m_dic[nSearchCur].m_pValue = pValue;
return; }
212 if (nCmp > 0) { nSearchBase = nSearchCur + 1; nSearchLimit--; }
214 if (!(pDic[nSearchCur].m_propName.compare(pPropName) < 0))
258template <
typename RCInterface = OdTrVisRenderClient>
373 return RCInterface::getSelectionStyle(nStyle, style);
int compare(const OdChar *otherString) const
virtual bool releaseMeasurement()=0
virtual bool isMeasurementStarted() const =0
virtual bool checkMeasurement() const =0
virtual bool beginMeasurement()=0
virtual bool hasProperty(const OdChar *pPropName) const =0
virtual bool useSceneGraph() const
virtual bool hasDirectRenderBuffer(bool *=NULL) const
virtual OdTrVisRenderAbort * queryRenderAbort(const OdTrVisDirectRenderPartialUpdateInvocation *, bool=false)
virtual bool useVisualStyles() const
virtual const OdTrVisTtfFontsCacheClient * ttfFontsCache() const
virtual bool useCompositeMetafiles() const
virtual ~OdTrVisRenderClient()
virtual bool usePartialUpdate() const
virtual const OdTrVisSharingProviderClient * sharingProvider() const
virtual OdUInt32 antiAliasingMode() const
virtual void emitWarning(const char *pWarn)=0
virtual bool rasterImageContentsHighlight() const
virtual int outputWindowWidth() const =0
virtual OdUInt8 * getDirectRenderBuffer(OdUInt32 *, OdUInt32 *, OdUInt32 *=NULL, OdUInt32 *=NULL)
virtual OdUInt32 blendingMode() const
virtual OdRxVariantValue getProperty(const OdChar *pPropName) const =0
virtual OdUInt32 getSelectionStyle(OdUInt32 nStyle, OdTrVisSelectionStyle &style) const
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 OdUInt32 getSelectionStyle(OdUInt32 nStyle, OdTrVisSelectionStyle &style) const
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 bool useOverlays() const
OdTrVisRenderClient * redirection() const
virtual bool rasterImageContentsHighlight() const
virtual int outputWindowHeight() const
virtual void emitError(const char *pError)
virtual const OdTrVisSharingProviderClient * sharingProvider() const
virtual OdUInt32 blendingMode() const
virtual bool useSceneGraph() const
virtual OdUInt8 * getDirectRenderBuffer(OdUInt32 *pWidth, OdUInt32 *pHeight, OdUInt32 *pFormat=NULL, OdUInt32 *pAlignment=NULL)
virtual bool hasDirectRenderBuffer(bool *bTransparent=NULL) const
void setRedirection(OdTrVisRenderClient *pRedirection)
OdTrVisRenderClient * m_pRedirection
virtual OdUInt32 antiAliasingMode() const
virtual const OdTrVisTtfFontsCacheClient * ttfFontsCache() 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