|
Public Member Functions |
Standard_EXPORT | Aspect_CircularGrid (const Quantity_Length aRadiusStep, const Standard_Integer aDivisionNumber, const Quantity_Length XOrigin=0, const Quantity_Length anYOrigin=0, const Quantity_PlaneAngle aRotationAngle=0) |
| creates a new grid. By default this grid is not
active.
|
Standard_EXPORT void | SetRadiusStep (const Quantity_Length aStep) |
| defines the x step of the grid.
|
Standard_EXPORT void | SetDivisionNumber (const Standard_Integer aNumber) |
| defines the step of the grid.
|
Standard_EXPORT void | SetGridValues (const Quantity_Length XOrigin, const Quantity_Length YOrigin, const Quantity_Length RadiusStep, const Standard_Integer DivisionNumber, const Quantity_PlaneAngle RotationAngle) |
Standard_EXPORT void | Compute (const Quantity_Length X, const Quantity_Length Y, Quantity_Length &gridX, Quantity_Length &gridY) const |
| returns the point of the grid the closest to the point X,Y
|
Standard_EXPORT Quantity_Length | RadiusStep () const |
| returns the x step of the grid.
|
Standard_EXPORT Standard_Integer | DivisionNumber () const |
| returns the x step of the grid.
|
Standard_EXPORT void | Init () |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Attributes |
Quantity_Length | myRadiusStep |
Standard_Integer | myDivisionNumber |
Standard_Real | myAlpha |
Standard_Real | myA1 |
Standard_Real | myB1 |