Using Color Lookup Tables with cwgraph3d
Hi,
When searching old forums and other references, I can only find information regarding using color lookup tables in labview and I am using VB6.
I want to let the user to pick a given amount of colors, have this turned into a gradiant over a table of size 256, and then using the custom colormaptstyle in my 3d graph. I want to be able to change the palette in real time to change my image. Basically I want to have the color palette screen to show up all the time and that gradiant that appears on the right side(vertically) to be my new color lookup table for the image(if that makes any sense).
Thanks. Any help would be greatly appreciated.
Kevin
[email protected]
Hello Kevin,
Attached is a small VB6 example that uses the CWGraph3D's ColorMap properties. I think this will demonstrate the color lookup table capability that you're asking about, and you'll be able to use this as a building block for your own application.
David Mc.
NI Applications Engineer
Attachments:
colormap.zip 5 KB
Similar Messages
-
What can you do with Color Lookup Tables (CLUT) and other ranges.?
Ok.... I might be repeating something.... but someone
suggested to post this as it hasn't be answered....
Anyway I'm curious on what you can do with Color Lookup
Tables (CLUT) in Fireworks.... I've been looking for details on
CLUT, but have only found information on what it's all about....
Alright, to the point, I'm kind of having some trouble on
what to do period with them....in the optimize panel in Fireworks I
saved the Palette, of all the colors I wanted (or so it seemed,
idk), and made it so it would be for a PNG 32 file... *is this
suppose to be an .act file too?*.... I then took the image to have
the colors replaced to the ones I saved in the custom color
table... so I tried loading the .act file I had saved, that had the
colors I made for the other image, but nothing happened... so I
tried doing other various types of files..... I tried doing it as a
.gif, and it work.... but the thing is I don't want it to be a
gif... and yes, it is kind of vague, but I really don't know what
to really do....
Is there only certain ways that you can load up CLUT files
into different pictures...?? I want this picture to be a .png file
too, so is there any way to save the color palette, and load them
into these type of files..?? or it can't be done with them..??
overal, I want this image to be .png files... is there any
tutorial or info on this..?? it would be quite helpful...AarokBomB wrote:
> Is there only certain ways that you can load up CLUT
files into different
> pictures...??
Choose File > Image Preview > Options tab. Set the
format type to PNG 8,
GIF, TIFF 8, or BMP 8. Click on the small button to the right
of the
Format drop down menu to open the tab options menu. Choose
Load Palette
and browse to the .act palette you you have saved. Clock on
OK to accept
the changes and close the dialog box. The imported color
table will be
applied to the image.
Linda Rathgeber [PVII] **Adobe Community Expert-Fireworks**
http://www.projectseven.com
Fireworks Newsgroup:
news://forums.projectseven.com/fireworks/
CSS Newsgroup: news://forums.projectseven.com/css/
Design Aid Kits:
http://www.webdevbiz.com/pwf/index.cfm -
Use of internal table with hearerline in ABAP OO
Hi,
I have a very basic question regarding the use of Internal table with headerline in ABAP OO.
I consider the concept of Internal table with header as one of the most features of ABAP, which is not there in any of the other porgramming languages.
I accept that OO's concept is one of the most powerful and a very good concept. We should also implement OO's concept in ABAP.
But my concern is why in the process of moving to OO's the concept of Internal table with headerline is no more used.
Can any one tell me the main reason for this. Is there any technical reason for this. By this i mean anything to do with memory or effeciency.
Thanx,
SrinivasHi Srinivas,
here is something more which i found about the same
follow this link
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
and search for header line.
it says:
Tables with header lines not allowed
Only tables without header lines can be declared in ABAP Objects.
Error message in ABAP Objects if the following syntax is used:
DATA itab TYPE LIKE TABLE OF ... WITH HEADER LINE.
Correct syntax:
DATA: itab TYPE LIKE TABLE OF ... ,
wa LIKE LINE OF itab.
Reason:
It depends on the statement whether the body or header line of a table is accessed. The table name should identify the table uniquely. Programs are easier to read. Tables with header lines do not improve performance.
i hope this will help you.
regards,
Kinshuk
PS mark helpful answers -
BADI cant use an internal table with header line
hi,
In BADI, we cant use an internal table with header line, and I am calling a function module which requires internal table as import parameter, now, the table I am passing is without a header line, So how to solve this problem ?You can use a type and then create an internal table of that type.
types :
begin of t_<example>
*field list
end of t_<example>
data :
gt_<table> type standard table of t_<example>
pass this to the FM -
What are the advantages of using an internal table with workarea
Hi,
can anyone tell me
What are the advantages of using an internal table with workarea
over an internal table with header line?
thnks in adv
regards
nagiHI,
Internal tables are a standard data type object which exists only during the runtime of the program. They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm
<b>Difference between Work Area and Header Line</b>
While adding or retrieving records to / from internal table we have to keep the record temporarily.
The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
e.g.
data: begin of itab occurs 10,
ab type c,
cd type i,
end of itab. " this table will have the header line.
data: wa_itab like itab. " explicit work area for itab
data: itab1 like itab occurs 10. " table is without header line.
The header line is a field string with the same structure as a row of the body, but it can only hold a single row.
It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table. It is the default work area for the internal table
1) The difference between
whih header line and with out heater line of internal table.
ex:-
a) Data : itab like mara occurs 0 with header line.
b) Data: itab like mara occurs 0.
-While adding or retrieving records to / from internal table we have to keep the record temporarily.
-The area where this record is kept is called as work area for the internal table.
-The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
-Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
a) Data : itab like mara occurs 0 with header line.
table is with header line
b) Data: itab like mara occurs 0.
table is without header line
2)work area / field string and internal table
which one is prefarable for good performance any why ?
-The header line is a field string with the same structure as a row of the body, but it can only hold a single row , whereas internal table can have more than one record.
In short u can define a workarea of an internal table which means that area must have the same structure as that of internal table and can have one record only.
Example code:
data: begin of itab occurs 10,
ab type c,
cd type i,
end of itab. " this table will have the header line.
data: wa_itab like itab. " explicit work area for itab
data: itab1 like itab occurs 10. " table is without header line.
Regards,
Padmam. -
Lookup table with a block based on a view
Hi!
My form contain one module component based on a view, one of the items of my block is a libelle that exist in one
of the tables queried by the view.
my question is :
how can I have a LOV on this item in order that the user select a value for a query???
or, can I make a lookup table with a view ????
Thanks!You said you copied an existing item in the block, and then copied an existing item in the layout editor - is it possible you actually created 2 separate items? Remove the one in the layout editor, and set the canvas of the one in the block so it is displayed in the layout editor. That could be the problem.
-
Unable to use two af:tables with differing coloring (skins)?
Im trying to configure the Siebel Self-Services application and customize the skinning. I have some problems though, because i need to show two af:tables on the same page, but with different coloring. One with black background and white text (both header and body) and one with white background and black text. I have tried to use styleClass:es, but the css parameters set for the af table are overriding the ones set in the stylesheets.
Anyone having an idea how to overcome this?
Thanks
/Jon-ErikHi,
if the styleClass name is table1 then the skin selector would be something like
.table1 af|table
or .afTable.af|table
I don't see how this can be overriden. If you assumption is that the style class reference must be to a CSS definition on the page then this indeed does not work. The styleClass name is kind of a named identifier for the component to skin and is used to further qualify the component to skin
Frank -
When to use qualified lookup table?
Hi all,
I am confused with the qualified lookup table and lookup table, for the situation that a company has more than one contact person, I created a table "contact person", which has following fields: first name, last name, phone number, email address.
Questions:
1. should I set "contact person" as a lookup table or qualified lookup table?
2. if to be set as qualified lookup table, which field should be qualifier field? what is the difference between qualifier field and non-qualifier field?
your reply will be very appreciable
BinAt times data is stored in such a way that duplication is unavoidable due to the storing mechanism and other factors. It may also happen that the data is sparse. The efficient way of storing data in such scenarios is the use of Qualified tables as it reduces the size of the main table and removes the unnecessarily created duplicates.
Check the foll links
/people/pooja.khandelwal2/blog/2006/03/29/taming-the-animal--qualified-tables
/people/avi.rokach/blog/2006/11/14/using-mdm-55-for-data-quality-analysis
MDM data modelling guide
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d4211fa-0301-0010-9fb1-ef1fd91719b6
How to import Qualified tables.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/abe914fa-0301-0010-7bb1-d25c2a4bb655
Also this one.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/792f57b7-0a01-0010-f3b6-881269136a83
Please reward for the same. -
Use of lookup table in obiee 11g
Hi All,
I am working on OBIEE 11g RPD.
Under BMM layer, when select logical table and go to there properties, In general section we have lookup table check box.
what is use of that lookup table check box in obiee 11g.
Thanx and Regards
PrashantPlease go thru this blog...nice explanation on Look up tables - new functionality in 11g
http://www.rittmanmead.com/2010/08/oracle-bi-ee-11g-lookup-tables-sparse-and-dense-lookups/ -
How to use dynamic internal table with FOR ALL ENTRIES
Hello SDNers,
I am having a dynamic internal table & want to use FOR ALL ENTRIES(FAE) using this dyn. table.
This works fine for me:
IF <lt_tmp> IS NOT INITIAL. "<lt_tmp> is my dyn. internal table
SELECT field1 field2
FROM TABLE ztable
INTO TABLE itab "Itab is a static table
FOR ALL ENTRIES IN <lt_tmp>
WHERE (lv_dynwhere). "lv_dynwhere -> dynamic where clause
ENDIF.
SAP documentation says:
"The logical expression sql_cond of the WHERE condition can be comprised of several logical expressions using AND and OR. However, if FOR ALL ENTRIES is specified, there must be at least one comparison with a column of the internal table itab that can be specified statically or dynamically. "
How do we specify the column of the internal table dynamically ? Can we do something like this:
IF <lt_tmp> IS NOT INITIAL. "<lt_tmp> is my dyn. internal table
SELECT field1 field2
FROM TABLE
INTO TABLE itab "Itab is a static table
FOR ALL ENTRIES IN <lt_tmp>
WHERE key_field1 = (dynamic token for column1 of <lt_tmp>)
key_field2 = (dynamic token for column2 of <lt_tmp>)
ENDIF.
ENDIF.
Let me know if i am not clear about my requirement.
BR,
SuhasHello Thomas,
What i meant was something like this:
WHERE key_field1 = ('<LT_TMP-COL1>') AND
key_field2 = ('<LT_TMP-COL2>')
I am confused by what SAP means with "dynamic representation of internal table columns" in FAE ?
@Rob: I was referring to SAPNW 7.0 documentation & the phrase (release 6.40 & higher) is missing. Anyways fyi i am on ECC5.0 ABAP release 6.40.
@Subhankar: This is what Marcin had proposed in For all entries and dynamic table.
Thanks,
Suhas
Edited by: Suhas Saha on Apr 6, 2010 11:53 AM -
Use of selection table with 4 fields
Hi everyone
Can someone please explain to me what is the use of the seltab 4 fields, how they are used and provide an example, cos Im kinda struggling understanding them...
Thanks in advance
AdamHi,
Explicity there is a selection table for select-options that is seltab and it have sign, low, high, and option.
Actually these values are also available in ranges.
Just to explain you go through this info.
What are the difference between SELECT-OPTIONS & RANGES?
Here both SELECT-OPTIONS & RANGES works for the same purpose. They both are used for the range selection from selection screen. The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the select options internal table which contains the fields of SIGN,OPTION,LOW & HIGH. But in case of RANGES, this internal table should be defined explicitly.
Eg. to SELECT-OPTIONS :
REPORT YARSELECT.
TABLES YTXLFA1.
SELECT-OPTIONS : VENDOR FOR YTXLFA1-LIFNR.
INITIALIZATION.
VENDOR-LOW = 1000. " It specifies the range starting value.
VENDOR-HIGH = 2000. " It specifies the range ending value.
VENDOR-OPTION = 'BT'. " specifies ranges value is in between.
VENDOR-SIGN = 'I'. "specifies both inclussive.
APPEND VENDOR.
SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB
WHERE LIFNR IN VENDOR.
Eg. to RANGES:
REPORT YARRANGE.
TABLES YTXLFA1.
RANGES: VENDOR FOR YTXFLA1-LIFNR.
SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB
WHERE LIFNR IN VENDOR.
Here with RANGES user has to design an internal table with fields -
SIGN,OPTION,LOW and HIGH EXPLICITLY.
>
Example:
select-options: bukrs for zstock-bukrs.
Should the user fill in 'ABFI' in BUKRS on the selection screen, BUKRS will look like this:
IEQABFI
This is because BUKRS is set as a table as follows:
begin of bukrs occurs 0,
SIGN(1) type c,
OPTION(2) type c,
LOW like bukrs,
HIGH like bukrs,
end of bukrs.
Now, when you create the following range, it will have the exact same fields set inside its table:
Ranges: bukrs for zstock-bukrs.
The difference is, because ranges doesn't show on the selection screen, you will have to fill it yourself, meaning you will have to fill bukrs-sign, bukrs-option, bukrs-low & bukrs-high all manually.
Some tips:
Sign is always I (for Include) or E (for Exclude)
Option can be a whole range, which includes:
EQ (Equal)
BT (Between))
CP (Contain Pattern)
So let's say you want to have the range check for all company codes not starting with AB, you will set your code as follow:
ranges: bukrs for zstock-bukrs.
bukrs-sign = 'E'. "Exclude
bukrs-option = 'CP'. "Pattern
bukrs-low = 'AB*'. "Low Value
bukrs-high = ''. "High Value
append bukrs.
Always remember to APPEND your range when you fill it, as the WHERE clause checks against the lines of the range table, not against the header line.
Hope this explains it well enough.
>
What does SIGN "I" & "E" mean?
The "I" stands for Include, and the "E" for Exclude.
The easiest way to learn how the range selections work is, create the following dummy program:
report dummy.
tables: mara.
select-options: matnr for mara-matnr.
start-of-selection.
loop at matnr.
write: / matnr-sign,
matnr-option,
matnr-low,
matnr-high.
endloop.
Run this program, and fill in a lot of junk into MATNR. Fill in some includes, some excludes, some ranges, etc., and you will soon realise how the system builds ranges (select-options). Once you know that, you can fill your own ranges quickly and efficiently.
Hope this info helps.
Regards,
Kumar. -
Need help using color checker passport with photoshop CS6
Hello all,
I'm having an issue using the Color Checker Passport with Photoshop CS6. Here's my configuration:
Mac Mini using OS 10.8, but very recently updated to 10.9 (Mavericks). My problem is the same on either OS version.
Photoshop CS6 ver 13.0.6 64 bit extended
Adobe Camera Raw 8.4
X-Rite Color Checker Passport ver 1.0.2
Canon 70D shooting RAW in sRGB color space
NEC Multi-Sync LCD monitor calibrated with Spyder 3 Pro ver 4.0.5
Now here's the issue. I go through the recommended workflow and generate a profile with no problem. Then in Camera Raw (after restarting all applications) I apply the profile to a photograph and instead of getting a nice color-corrected image my image has a greenish-yellow tint to it. It's very noticeable and I haven't been able to figure out what I'm doing wrong, if anything. I re-calibrated the monitor, re-did the workflow with other pictures, but still get the same result.
I greatly appreciate any help or ideas on how to remedy this. I've sent an inquiry to X-Rite via their Support Web Page, but haven't heard back from them yet.
Thanks,
Kevin H.Hello all,
I'm having an issue using the Color Checker Passport with Photoshop CS6. Here's my configuration:
Mac Mini using OS 10.8, but very recently updated to 10.9 (Mavericks). My problem is the same on either OS version.
Photoshop CS6 ver 13.0.6 64 bit extended
Adobe Camera Raw 8.4
X-Rite Color Checker Passport ver 1.0.2
Canon 70D shooting RAW in sRGB color space
NEC Multi-Sync LCD monitor calibrated with Spyder 3 Pro ver 4.0.5
Now here's the issue. I go through the recommended workflow and generate a profile with no problem. Then in Camera Raw (after restarting all applications) I apply the profile to a photograph and instead of getting a nice color-corrected image my image has a greenish-yellow tint to it. It's very noticeable and I haven't been able to figure out what I'm doing wrong, if anything. I re-calibrated the monitor, re-did the workflow with other pictures, but still get the same result.
I greatly appreciate any help or ideas on how to remedy this. I've sent an inquiry to X-Rite via their Support Web Page, but haven't heard back from them yet.
Thanks,
Kevin H. -
How to use single buffered table with FOR ALL ENTRIES KEYWORD
Hai,
I'm Using TJ02T Database table, It is single buffered table but at the same time I want to use FOR ALL ENTRIES KEYWORD , Please Help me.
Regards,
S.JananiHi,
FOR ALL ENTRIES will not depend on the buffering nature of the table. The single buffered table will only only buffer one record into memory. You can still use the statement to query the values, but it may have performance problems if the data volume is high since the records are not completely buffered into memory, the time will spent in getting data from DB.
Thanks..
Preetham S -
Problem in using MultiSelect ADF table with view Object
I have a requirement of displaying a table with multi select option. On page load table will be displayed with all columns as output text except last column as input text. User can update the last column of the selected row and only checked rows should get updated in the DB Table.
Is there any document or Tutorial available?Hi,
this is an individual implementation. Tutorials are written for common usecases. However, the way to implement this is to set the read-only property on the last column's text field (turn it into a textinput field) based on whether or not the row is selected. Make sure that the row selection PPRs the table
for a code example download
http://thepeninsulasedge.com/frank_nimphius/wp-content/uploads/2008/05/OldAndLostBlogBusterTips.zip
and look at page 272 "ADF Faces: Conditional table row manipulation on table row select"
Frank -
SOA 11g DBAdapter Polling using a Sequencing Table with a DATE Field
Hi.
I have implemented a polling solution using a sequencing table that references a DATE column. For the most part the poll works correctly, but on occasion, I am not seeing a BPEL process instantiation for various records that get created in my source table.I have also noticed that in this particular case, the DATE field content on one or more source records is exactly the same --> "YYYYMMDDhhmmss".
I just want to confirm here, that the polling adapter should be able to pick up multiple records from the source table, even though the date field is exactly the same. As well, how should I go about trying to debug this issue, if point #1 is handled by the system. Is there is a specific log or trace file that I can look at. Also, could I be facing a timing issue ?
Can someone please comment on this.
Thanks.In my table, I don't see a primary key, but only a unique index. I would assume then, that this would be analogous to the primary key capture; noticed that currently this code was only using one column out of two, from the unique index itself.
Also, is the date content issue that I mentioned above a moot point then, based upon not having the correct primary key/unique key data pointers established ?
Thanks.
Maybe you are looking for
-
How to create a simple idoc in practice? can you provide an example?
how to create a simple idoc in practice? can you provide an example with full source code?
-
HP Photosmart D110 won't connect. Keeps saying cannot find printer
I'm sorry if someone have posted this before but I don't know how to explain my problem. The printer was working fine the first few weeks we got it and now, it's becoming a hassle especially when I need to print review sheets for class in the morning
-
Why won't my Adobe Professional program activate online or by phone?
Online activation says to phone - phone activation "no longer works, try www.adobe...., which my computer can't find. It says my sign-up time will expire and I can't use the program - is that correct? WHY? I paid for this!!
-
Settelment of shipment cost to invoice (F2)
Hi Gurus, I have a n issue, I want to add transportation cost in billing doc. i.e The shipment cost calculated in VI01 doc , I want to add that cost to my invoice. So i can charge that transportation cost to my customer through invoice. Please help
-
Errors during backup after waking from sleep mode
I just setup my time machine to backup to a USB external HD plugged into my airport extreme base station (802.11n). The full backup was successful as were subsequent test "backup now" operations. I put the Macbook (new Macbook 13") to sleep last nigh