CD2DGeometry 類別

ID2D1Geometry 的包裝函式。

class CD2DGeometry : public CD2DResource;

Members

公用建構函式

名稱

描述

CD2DGeometry::CD2DGeometry

建構 CD2DGeometry 物件。

CD2DGeometry::~CD2DGeometry

解構函式。 當正在終結 D2D 幾何物件時呼叫。

公用方法

名稱

描述

CD2DGeometry::Attach

將現有的資源介面附加至物件

CD2DGeometry::CombineWithGeometry

將這個幾何與指定的幾何合併,並將結果儲存在 ID2D1SimplifiedGeometrySink。

CD2DGeometry::CompareWithGeometry

描述這個幾何與指定幾何之間的交集 這個比較是使用指定的簡維 (Flattening) 容錯來執行。

CD2DGeometry::ComputeArea

在幾何由指定的矩陣使用指定的容限進行轉換和簡維之後,計算該幾何的面積。

CD2DGeometry::ComputeLength

仿彿將每個區段展開成一條線的方式,計算幾何的長度。

CD2DGeometry::ComputePointAtLength

在幾何由指定的矩陣使用指定的容限進行轉換和簡維之後,計算沿該幾何指定之距離位置上的點及正切向量。

CD2DGeometry::Destroy

終結 CD2DGeometry 物件。 (覆寫 CD2DResource::Destroy)。

CD2DGeometry::Detach

將資源介面與其物件中斷連結

CD2DGeometry::FillContainsPoint

表示在指定的簡維容限下,幾何所填滿的區域是否包含指定的點。

CD2DGeometry::Get

傳回 ID2D1Geometry 介面。

CD2DGeometry::GetBounds

CD2DGeometry::GetWidenedBounds

在幾何以指定的筆劃寬度及樣式加寬,並由指定的矩陣進行轉換之後,取得該幾何的界限。

CD2DGeometry::IsValid

檢查資源有效性 (覆寫 CD2DResource::IsValid)。

CD2DGeometry::Outline

計算幾何的外框,並將結果寫入至 ID2D1SimplifiedGeometrySink。

CD2DGeometry::Simplify

建立僅包含線條及 (選擇性) 三次方貝茲曲線的簡化版幾何,並將結果寫入 ID2D1SimplifiedGeometrySink。

CD2DGeometry::StrokeContainsPoint

根據指定的筆劃粗細、樣式和轉換,判斷幾何筆劃是否包含指定的點。

CD2DGeometry::Tessellate

在幾何由指定的矩陣使用指定的容限進行轉換和簡維之後,建立一組涵蓋該幾何的順時針捲繞三角形。

CD2DGeometry::Widen

在幾何由指定的矩陣使用指定的容限進行轉換和簡維之後,以指定的筆劃將幾何加寬,並將結果寫入 ID2D1SimplifiedGeometrySink。

公用運算子

名稱

描述

CD2DGeometry::operator ID2D1Geometry*

傳回 ID2D1Geometry 介面。

受保護的資料成員

名稱

描述

CD2DGeometry::m_pGeometry

ID2D1Geometry 的指標。

繼承階層架構

CObject

CD2DResource

CD2DGeometry

需求

**標頭檔:**afxrendertarget.h

請參閱

其他資源

MFC 類別