CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OdGsSpatialQuery Class Reference

#include <GsSpatialQuery.h>

Public Member Functions

 OdGsSpatialQuery ()
 
const OdSiShapebuild (const OdGsViewImpl &view, const OdGeExtents3d &sceneExtents, int numPoints, const OdGePoint2d *points)
 
const OdSiShapebuild (const OdGsViewImpl &view, const OdGeExtents3d &sceneExtents, int numPoints=0, const OdGsDCPoint *points=0)
 
const OdSiShapebuild (const OdGsViewImpl &view, const OdGsBaseModel *pModel, const OdGeExtents3d &sceneExtents, int numPoints, const OdGePoint2d *points)
 
const OdSiShapebuild (const OdGsViewImpl &view, const OdGsBaseModel *pModel, const OdGeExtents3d &sceneExtents, int numPoints=0, const OdGsDCPoint *points=0)
 
const OdSi::BBoxgetBBox () const
 

Protected Member Functions

const OdSiShapeapplyClipping (const OdGsViewImpl &view, const OdSiShape &shape)
 
const OdSiShapetransformQuery (const OdSiShape &ss, const OdGeMatrix3d &tf)
 
const OdSiShapetransformQuery (const OdSiShape &ss, const OdGsBaseModel *pModel)
 

Protected Attributes

OdSi::BBox m_spqbox
 
OdSi::Volume m_spqvol
 
OdSiShapesIntersection m_clip
 

Detailed Description

Corresponding C++ library: TD_Gs

<group OdGs_Classes>

Definition at line 44 of file GsSpatialQuery.h.

Constructor & Destructor Documentation

◆ OdGsSpatialQuery()

OdGsSpatialQuery::OdGsSpatialQuery ( )
inline

Default constructor for the OdGsSpatialQuery class.

Definition at line 50 of file GsSpatialQuery.h.

Member Function Documentation

◆ applyClipping()

const OdSiShape & OdGsSpatialQuery::applyClipping ( const OdGsViewImpl view,
const OdSiShape shape 
)
protected

◆ build() [1/4]

const OdSiShape & OdGsSpatialQuery::build ( const OdGsViewImpl view,
const OdGeExtents3d sceneExtents,
int  numPoints,
const OdGePoint2d points 
)

Builds a spatial query for the specified polygon in this view object.

Parameters
view[in] View object reference.
sceneExtents[in] Whole scene extents.
points[in] Array of points in eye coords.
numPoints[in] Number of points.

◆ build() [2/4]

const OdSiShape & OdGsSpatialQuery::build ( const OdGsViewImpl view,
const OdGeExtents3d sceneExtents,
int  numPoints = 0,
const OdGsDCPoint points = 0 
)

Builds a spatial query for the specified polygon in this view object.

Parameters
view[in] View object reference.
sceneExtents[in] Whole scene extents.
points[in] Array of points in screen coords.
numPoints[in] Number of points.

◆ build() [3/4]

const OdSiShape & OdGsSpatialQuery::build ( const OdGsViewImpl view,
const OdGsBaseModel pModel,
const OdGeExtents3d sceneExtents,
int  numPoints,
const OdGePoint2d points 
)

Builds a spatial query for the specified polygon in this view object.

Parameters
view[in] View object reference.
pModel[in] Graphics System Model to build query for.
sceneExtents[in] Whole scene extents.
points[in] Array of points in eye coords.
numPoints[in] Number of points.

◆ build() [4/4]

const OdSiShape & OdGsSpatialQuery::build ( const OdGsViewImpl view,
const OdGsBaseModel pModel,
const OdGeExtents3d sceneExtents,
int  numPoints = 0,
const OdGsDCPoint points = 0 
)

Builds a spatial query for the specified polygon in this view object.

Parameters
view[in] View object reference.
pModel[in] Graphics System Model to build query for.
sceneExtents[in] Whole scene extents.
points[in] Array of points in screen coords.
numPoints[in] Number of points.

◆ getBBox()

const OdSi::BBox & OdGsSpatialQuery::getBBox ( ) const
inline

Returns the current query's bounding box; call this method only after 'build()'.

Definition at line 103 of file GsSpatialQuery.h.

◆ transformQuery() [1/2]

const OdSiShape & OdGsSpatialQuery::transformQuery ( const OdSiShape ss,
const OdGeMatrix3d tf 
)
protected

Transform query by transformation matrix.

◆ transformQuery() [2/2]

const OdSiShape & OdGsSpatialQuery::transformQuery ( const OdSiShape ss,
const OdGsBaseModel pModel 
)
protected

Transform query by optional model transformation matrix.

Member Data Documentation

◆ m_clip

OdSiShapesIntersection OdGsSpatialQuery::m_clip
protected

Definition at line 119 of file GsSpatialQuery.h.

◆ m_spqbox

OdSi::BBox OdGsSpatialQuery::m_spqbox
protected

Definition at line 117 of file GsSpatialQuery.h.

◆ m_spqvol

OdSi::Volume OdGsSpatialQuery::m_spqvol
protected

Definition at line 118 of file GsSpatialQuery.h.


The documentation for this class was generated from the following file: