CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GsSpatialQuery.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 __OD_GS_SPATIAL_QUERY_H_
25#define __OD_GS_SPATIAL_QUERY_H_
26
27#include "TD_PackPush.h"
28#include "Si/BBox.h"
29#include "Gs/SiVolume.h"
30#include "Gs/GsExport.h"
31#include "Ge/GeExtents3d.h"
32
33class OdGsViewImpl;
34class OdGsBaseModel;
35class OdGsDCPoint;
36class OdGePoint2d;
37
45{
46public:
51
59 const OdSiShape& build(const OdGsViewImpl& view,
60 const OdGeExtents3d& sceneExtents,
61 int numPoints, const OdGePoint2d* points);
62
70 const OdSiShape& build(const OdGsViewImpl& view,
71 const OdGeExtents3d& sceneExtents,
72 int numPoints = 0, const OdGsDCPoint* points = 0);
73
82 const OdSiShape& build(const OdGsViewImpl& view,
83 const OdGsBaseModel *pModel,
84 const OdGeExtents3d& sceneExtents,
85 int numPoints, const OdGePoint2d* points);
86
95 const OdSiShape& build(const OdGsViewImpl& view,
96 const OdGsBaseModel *pModel,
97 const OdGeExtents3d& sceneExtents,
98 int numPoints = 0, const OdGsDCPoint* points = 0);
99
103 const OdSi::BBox& getBBox() const { return m_spqbox; }
104
105protected:
106 const OdSiShape& applyClipping(const OdGsViewImpl& view, const OdSiShape& shape);
110 const OdSiShape& transformQuery(const OdSiShape &ss, const OdGeMatrix3d &tf);
114 const OdSiShape& transformQuery(const OdSiShape &ss, const OdGsBaseModel *pModel);
115
116protected:
120};
121
122#include "TD_PackPop.h"
123
124#endif // __OD_GS_SPATIAL_QUERY_H_
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
const OdSiShape & build(const OdGsViewImpl &view, const OdGsBaseModel *pModel, const OdGeExtents3d &sceneExtents, int numPoints=0, const OdGsDCPoint *points=0)
const OdSiShape & build(const OdGsViewImpl &view, const OdGsBaseModel *pModel, const OdGeExtents3d &sceneExtents, int numPoints, const OdGePoint2d *points)
const OdSiShape & build(const OdGsViewImpl &view, const OdGeExtents3d &sceneExtents, int numPoints, const OdGePoint2d *points)
const OdSiShape & transformQuery(const OdSiShape &ss, const OdGsBaseModel *pModel)
const OdSiShape & applyClipping(const OdGsViewImpl &view, const OdSiShape &shape)
OdSi::BBox m_spqbox
const OdSiShape & build(const OdGsViewImpl &view, const OdGeExtents3d &sceneExtents, int numPoints=0, const OdGsDCPoint *points=0)
OdSi::Volume m_spqvol
OdSiShapesIntersection m_clip
const OdSiShape & transformQuery(const OdSiShape &ss, const OdGeMatrix3d &tf)
const OdSi::BBox & getBBox() const