@@ -199,11 +199,15 @@ public V3DMolecule(StereoMolecule mol, int constructionMode, int hydrogenMode, i
199
199
* @param hydrogenMode one of MoleculeArchitect.HYDROGEN_MODE_ options
200
200
* @param ribbonMode one of Ribbon.MODE_ options
201
201
* @param surfaceMode SURFACE_NONE, SURFACE_WIRES, or SURFACE_FILLED
202
+ * @param surfaceColorMode one of SurfaceMesh.SURFACE_COLOR_...
203
+ * @param surfaceColor null or color to be used for color modes PLAIN or ATOMIC_NO
204
+ * @param surfaceTransparency SURFACE_NONE, SURFACE_WIRES, or SURFACE_FILLED
202
205
* @param id
203
206
*/
204
- public V3DMolecule (StereoMolecule protein , ArrayList <StereoMolecule > ligands , int constructionMode , int hydrogenMode , int ribbonMode , int surfaceMode , int id ) {
205
- this (protein , constructionMode , hydrogenMode , ribbonMode , surfaceMode ,
206
- DEFAULT_SURFACE_COLOR_MODE , null , DEFAULT_SURFACE_TRANSPARENCY , id , MoleculeRole .MACROMOLECULE , true , false , ligands );
207
+ public V3DMolecule (StereoMolecule protein , ArrayList <StereoMolecule > ligands , int constructionMode , int hydrogenMode ,
208
+ int ribbonMode , int surfaceMode , int surfaceColorMode , Color surfaceColor , double surfaceTransparency , int id ) {
209
+ this (protein , constructionMode , hydrogenMode , ribbonMode , surfaceMode , surfaceColorMode , surfaceColor , surfaceTransparency ,
210
+ id , MoleculeRole .MACROMOLECULE , true , false , ligands );
207
211
}
208
212
209
213
public V3DMolecule (StereoMolecule mol , int constructionMode , int hydrogenMode , int id , MoleculeRole role , boolean overrideHydrogen , boolean splitAllBonds ) {
@@ -220,14 +224,14 @@ public V3DMolecule(StereoMolecule mol, int constructionMode, int hydrogenMode, i
220
224
* @param surfaceMode SURFACE_NONE, SURFACE_WIRES, or SURFACE_FILLED
221
225
* @param surfaceColorMode DEFAULT_SURFACE_COLOR_MODE or one of the SurfaceMesh.SURFACE_COLOR_xxx modes
222
226
* @param surfaceColor null or explicit surface color used for some color modes
223
- * @param transparency
227
+ * @param surfaceTransparency
224
228
* @param id
225
229
* @param role
226
230
* @param overrideHydrogens whether hydrogen atoms are drawn in the molecule override color
227
231
* @param splitAllBonds whether all bonds shall be constructed from two cylinders (allowing better selection coloring)
228
232
*/
229
- public V3DMolecule (StereoMolecule mol , int constructionMode , int hydrogenMode , int ribbonMode , int surfaceMode ,
230
- int surfaceColorMode , Color surfaceColor , double transparency ,
233
+ public V3DMolecule (StereoMolecule mol , int constructionMode , int hydrogenMode , int ribbonMode ,
234
+ int surfaceMode , int surfaceColorMode , Color surfaceColor , double surfaceTransparency ,
231
235
int id , MoleculeRole role , boolean overrideHydrogens , boolean splitAllBonds , ArrayList <StereoMolecule > ligands ) {
232
236
super (mol .getName ());
233
237
mMol = mol ;
@@ -257,7 +261,7 @@ public V3DMolecule(StereoMolecule mol, int constructionMode, int hydrogenMode,
257
261
mSurfaceMode [0 ] = surfaceMode ;
258
262
mSurfaceColor [0 ] = (surfaceColor == null ) ? DEFAULT_SURFACE_COLOR : surfaceColor ;
259
263
mSurfaceColorMode [0 ] = surfaceColorMode ;
260
- mSurfaceTransparency [0 ] = transparency ;
264
+ mSurfaceTransparency [0 ] = surfaceTransparency ;
261
265
mInitialCoordinates = new Coordinates [mol .getAllAtoms ()];
262
266
IntStream .range (0 ,mol .getAllAtoms ()).forEach (i -> {
263
267
mInitialCoordinates [i ] = new Coordinates (mol .getCoordinates (i ));
@@ -285,7 +289,7 @@ public V3DMolecule(StereoMolecule mol, int constructionMode, int hydrogenMode,
285
289
286
290
if (surfaceMode != SURFACE_MODE_NONE ) {
287
291
SurfaceCutter cutter = (role == MoleculeRole .MACROMOLECULE ) ? createSurfaceCutter () : null ;
288
- mSurfaceMesh [0 ] = new SurfaceMesh (mMol , 0 , surfaceColorMode , getNeutralColor (0 ), 1.0 - transparency , cutter );
292
+ mSurfaceMesh [0 ] = new SurfaceMesh (mMol , 0 , surfaceColorMode , getNeutralColor (0 ), 1.0 - surfaceTransparency , cutter );
289
293
updateSurfaceFromMesh (0 );
290
294
}
291
295
}
0 commit comments