API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > OdDbTable::selectSubRegion Method
OdDbTable::selectSubRegion Method
Syntax
C++
virtual OdResult selectSubRegion(const OdGePoint3d& wpt1, const OdGePoint3d& wpt2, const OdGeVector3d& wvwVec, const OdGeVector3d& wvwxVec, double wxaper, double wyaper, OdDb::SelectType seltype, bool bIncludeCurrentSelection, bool bInPickFirst, OdInt32& rowMin, OdInt32& rowMax, OdInt32& colMin, OdInt32& colMax, OdDbFullSubentPathArray* pPaths = 0) const;
Parameters 
Description 
const OdGePoint3d& wpt1 
[in] 3D picking point in WCS that specifies the first corner point of the window box selection.  
const OdGePoint3d& wpt2 
[in] 3D picking point in WCS that specifies the second corner point of the window box selection.  
const OdGeVector3d& wvwVec 
[in] 3D vector in WCS that specifies the view direction for the selection.  
const OdGeVector3d& wvwxVec 
[in] 3D vector in WCS that specifies the view orientation for the hit test.  
double wxaper 
[in] Width of aperture box centered at the hit point.  
double wyaper 
[in] Height of aperture box centered at the hit point.  
OdDb::SelectType seltype 
[in] Selection type.  
bool bIncludeCurrentSelection 
[in] Indicates whether the selected cells will include currently selected cells and newly selected cells or only newly selected cells.  
bool bInPickFirst 
[in] If true, the entity is already in the pickfirst set; if false, the pickfirst logic should attempt to sub-select the entity directly.  
OdInt32& rowMin 
[out] Lower bound of row index.  
OdInt32& rowMax 
[out] Upper bound of row index.  
OdInt32& colMin 
[out] Lower bound of column index.  
OdInt32& colMax 
[out] Upper bound of column index.  
OdDbFullSubentPathArray* pPaths = 0 
[out] Pointer to an OdDbFullSubentPathArray. 

Returns eOk if successful or an appropriate error code if not. 

If pPaths is not null, the cell sub-entities will be returned in pPaths.

Selects a set of cells in this table by the specified window box, viewing direction, and orientation. Returns the set of cells in the output arguments rowMin, rowMax, colMin, colMax. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.