DiscussionsIssue archiveOther usage issues

Archived discussion

TPrsStd_AISPresentation

Other usage issuesFri, 12/13/2002 - 07:412 replies

Browse this forum
QuestionAuthor

Hi:
My program has two split views(myViewer, myViewer2). Both are 3D view. I want to display object(s) on both.

In Doc.cpp
I did
TPrsStd_AISViewer::New(TD->Root(),myViewer);

Handle(AIS_InteractiveContext) CTX;
TPrsStd_AISViewer::Find(myStarsDoc->Main(), CTX);

Display object(s):

Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(aNewLabel, TNaming_NamedShape::GetID());

prs->Display(1);

It seems it always display on myViewer view. How can I let it display on myViewer2 view?

Thanks a lot.

Best regards,
Shawn

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi Shawn,

where do you have your viewer? In the views or in the document (I think you use VC)?

Best regards,

Commenter-1

02Commenter-2

Dear Patrik:
If you asking is where I create my viewer. The answer is in the document. And, you are right that I am using VC++(MDI) and based on MFC. Thanks a lot.

PS. It is same exactly like SampleOCAF. The only difference is I create two viewers.

Best regards,
Commenter-2