Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accommodate model operators with "preview" #98

Open
vibraphone opened this issue Mar 2, 2015 · 2 comments
Open

Accommodate model operators with "preview" #98

vibraphone opened this issue Mar 2, 2015 · 2 comments

Comments

@vibraphone
Copy link
Member

Some model operators (e.g., discrete grow, cgm sweep) can provide useful feedback given an initial set of operator parameters without performing the (normally irreversible) operation. SMTK does not accommodate this yet. The use cases are

  • CGM. Methods of GeometryModifyTool that accept a preview argument can provide primitives to be rendered as a result of an operation's preview. This is the majority of solid modeling operators CGM provides.
  • Discrete. The grow operator can provide an updated mesh selection given seed points. Perhaps split can as well? Applications must be able to access the preview results in order to allow users to overwrite their seed selection with the returned selection.
@vibraphone vibraphone modified the milestone: 1.0 Mar 2, 2015
@BobObara
Copy link
Contributor

BobObara commented Mar 3, 2015

It seems then that operators could have a Pre-viewable attribute indicating that the results can be viewed before the operator is really applied.

Bob

Robert M. O'Bara, MEng.
Assistant Director of Scientific Computing

Kitware Inc.
28 Corporate Drive
Suite 101
Clifton Park, NY 12065

Phone: (518) 881- 4931

On Mar 2, 2015, at 2:49 PM, David Thompson [email protected] wrote:

Some model operators (e.g., discrete grow, cgm sweep) can provide useful feedback given an initial set of operator parameters without performing the (normally irreversible) operation. SMTK does not accommodate this yet. The use cases are

CGM. Methods of GeometryModifyTool that accept a preview argument can provide primitives to be rendered as a result of an operation's preview. This is the majority of solid modeling operators CGM provides.
Discrete. The grow operator can provide an updated mesh selection given seed points. Perhaps split can as well? Applications must be able to access the preview results in order to allow users to overwrite their seed selection with the returned selection.

Reply to this email directly or view it on GitHub #98.

@vibraphone
Copy link
Member Author

There are two pieces:

  • Providing a chance for an operator to provide a "preview result" (which may be visual like the CGM use case or a mix of visual and non-visual like the discrete grow operator's selection suggestion). Just having a preview method on the base Operator class that returns an attribute would be enough; operators that did not override the method would return an "empty" preview telling the operation to proceed.
  • Providing a way for the application to do more than just display preview geometry, but accept user response in an application-specific way. This is complicated by the fact that the subclass of operator which does the actual work may be in a separate process than either the GUI client or the render server. We may need something like an "operator decorator" that remote and/or local clients can construct to present preview results and accept feedback.

@BobObara BobObara removed this from the CMB RC2 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants