Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031683Community[OCCT] OCCT:Visualizationpublic2020-07-23 08:242020-08-04 16:27
ReporterVico Liang 
Assigned Tomkrylova 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.5.0*Fixed in Version 
Summary0031683: Visualization - V3d_View::SetBackgroundImage() should accept Image_PixMap
Descriptionvoid V3d_View::SetBackgroundImage (const Standard_CString theFileName,
                                   const Aspect_FillMethod theFillStyle,
                                   const Standard_Boolean theToUpdate)

It's impossible to make above function SetBackgroundImage working without freeimage library. This function accepts an image file path and internal calls freeimage to load the file.

In my cases, i don't want to build and link freeimage at all, but i still want to use the feature such as texture, image background, image output. i just don't want to work with filename directly. in stead, i want to use Image_PixMap as input, and then i can fill and extract data from Image_PixMap.Actaully in most cases, read and save image features are provided on application level, such as QT framework, MFC, etc.

My suggegstion is to reduce the usage of Image_AlienPixMap and provide method to support Image_PixMap as alternate of file path.
TagsNo tags attached.
Test case number
Attached Files

- Relationships
related to 0031129newkgv Open CASCADE Visualization - revise background / environment API 
related to 0030549resolvedabv Open CASCADE Coding - split Image_AlienPixMap into several classes 
related to 0031686newkgv Community Visualization - V3d_View::SetBackgroundImage() not working for .bmp .jpg and .tga formats 

-  Notes
kgv (developer)
2020-08-04 16:27

It is proposed extending V3d_View::SetBackgroundImage() to accept Graphic3d_TextureRoot or its sub-class as generic image-provider used by other texture uploading interfaces.

- Issue History
Date Modified Username Field Change
2020-07-23 08:24 Vico Liang New Issue
2020-07-23 08:24 Vico Liang Assigned To => kgv
2020-07-23 09:12 kgv Relationship added related to 0031129
2020-07-23 09:13 kgv Relationship added related to 0030549
2020-07-23 09:14 kgv Summary Reduce freeimage dependance => Visualization - V3d_View::SetBackgroundImage() should accept Image_PixMap
2020-07-24 11:52 kgv Relationship added related to 0031686
2020-08-04 16:27 kgv Note Added: 0093429
2020-08-04 16:27 kgv Assigned To kgv => mkrylova
2020-08-04 16:27 kgv Status new => assigned

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker