Forum archiveIssue archiveOther usage issues

Archived discussion

More Control on AIS_AngleDimension?

Other usage issuesSun, 04/21/2002 - 05:058 replies

Browse this forum
QuestionAuthor

Hi, everybody:

I found that AIS_AngleDimension can only draw one style anlge dimension(in plane), it always draws an arc outside the area from start AIS_Line to end AIS_Line, no matter howthe gp_Pnt parameter is. Although I think this is very simple to add control on the actual position, i.e. inside or outside the angle area for OCC developer, surprisingly there is no such option. Any suggestion will be highly appreciated.

Discussion

8 archived replies

Posts are displayed in their archived order.

01Commenter-1

Do it yourself !
Just copy the AIS_AngleDimension.cxx .hxx Handle_AIS_AngleDimenssion.hxx, rename the files and the class inside, and change the code in the Compute...Angle methods.

Commenter-1
http://www.exotk.org

02Author

stand in silent tribute for the poor OCC!

03Commenter-2

I fully share your surprise. It renders the class useless.

04Commenter-3

Dear Author,
By default AngleDimension Interactive Object is movable.
You may simply move it using "drag and drop" technique at the preferred position.
Regards

05Commenter-2

Could you elaborate a little more? In my viewer I cannot just grab the Angle dim an associated it to another shape.
However, the most urgent issue is how to specify inner or outer angle.

thanks,

-jelle

06Commenter-3

Dear jelle,
Constructor of AIS_AndgleDimension may use automatic position or a given position (Pnt from gp).
Try to use this option. For details you can overlook AIS_AngleDimension and DsgPrs_AnglePresentation classes.
Regards

07Commenter-4

Dear Commenter-3,

Could you be a little more specific, what does one have to do to accomplish moving of dimensions?

- use the overload that takes a Pnt from gp
- OnMouseMove use SetPosition from AIS_Relation ????

Regards,

Commenter-4

08Commenter-3

Dear Arjan,
I just gave you a hint.
Please do not expect us to provide on this Forum the level of technical consulting
comparable to our professional support - clearly we don't want to harm our own business :-).
If the issue is critical for you I would suggested you to make request for the dedicated
customer support - http://www.opencascade.org/about/contacts/.
Or ask training or e-learning courses - http://www.opencascade.org/support/training/.
Regards