Skip to content

refactor(OpenGL/Texture): use named parameters #3224

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

Open
wants to merge 40 commits into
base: beta
Choose a base branch
from

Conversation

floryst
Copy link
Collaborator

@floryst floryst commented Feb 25, 2025

Context

The create* methods have enough parameters to warrant using named parameters.

Closes #3222

Results

  • vtkOpenGLTexture create* methods now use named parameters

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js:
    • OS:
    • Browser:

@floryst floryst requested review from finetjul and sankhesh February 25, 2025 21:27
@floryst floryst force-pushed the opengltexture-named-parameters branch 2 times, most recently from b820050 to b7fdd20 Compare February 26, 2025 18:19
@floryst
Copy link
Collaborator Author

floryst commented Feb 26, 2025

FYI @sedghi

@sedghi
Copy link
Contributor

sedghi commented Feb 26, 2025

Looks great!

Copy link
Collaborator

@sankhesh sankhesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@floryst floryst force-pushed the opengltexture-named-parameters branch from b7fdd20 to ecfb22b Compare February 27, 2025 16:56
Copy link
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

munozco and others added 15 commits March 13, 2025 13:26
vtkVolumeMapper, vtkImageCPRMapper, and vtkImageResliceMapper all now
support updating sub-image extents, reducing the GPU upload overhead
when part of the image has updated.
Init pickFromList to false not 0.

Fix TypeScript defs.
This change adds support for sorting 2D actor overlays based on their `layerNumber` property.
This ensures that they are rendered in the correct order for every frame even if their layer number
changes between frames.
This change adds an argument to `addMissingNodes` to ensure that the
view node ordering is maintained. By default, ordering is not
maintained. However, for nodes of type `vtkActor2D`, where layering
requires a specific order, the node ordering is  enforced.
@floryst floryst force-pushed the opengltexture-named-parameters branch 2 times, most recently from 9c33a0a to caf8081 Compare April 16, 2025 17:18
@floryst floryst changed the base branch from master to beta April 16, 2025 17:27
@floryst floryst changed the base branch from beta to master April 16, 2025 17:28
floryst added 2 commits April 18, 2025 10:21
BREAKING CHANGE: the updatedExtent API has been moved from the mappers
to the vtkImageProperty and vtkVolumeProperty interfaces. vtkImageMapper
does not yet honor the updatedExtent API.
@floryst floryst force-pushed the opengltexture-named-parameters branch from caf8081 to 8e7e117 Compare April 18, 2025 14:52
@floryst floryst changed the base branch from master to beta April 18, 2025 14:53
floryst added 2 commits April 18, 2025 10:55
The create* methods have enough parameters to warrant using named
parameters.

BREAKING CHANGE: the create* methods now use named parameters rather
than positional parameters.
@floryst floryst force-pushed the opengltexture-named-parameters branch from 8e7e117 to 281b5a6 Compare April 18, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Refactor] vtkOpenGLTexture create* methods to use named arguments
9 participants