Commit Graph

42 Commits

Author SHA1 Message Date
Greg Landrum
91212a4eb3 A variety of drawing-related changes (#986)
* Fixes #982
also changes bond-wedging algorithm to favor lighter non-ring bonds

* prefer wedging bonds to lower-degree atoms

* Fixes #983

* small fixes
- Fix a problem where a chiral atom is selected to draw a wedge to instead of a ring atom
- Fix a problem where two calls to PrepareMolForDrawing() led to two wedged bonds from an atom.

* Fixes #985

This isn't the most satisfying solution (the wedged bonds are sometimes a bit too large), but it gives reasonable results on the test cases I've tried.
2016-07-25 17:28:41 -04:00
Greg Landrum
2e961be508 rename method to getText() 2016-03-31 05:17:41 +02:00
Greg Landrum
baa2b9b217 first version 2016-03-30 16:08:05 +02:00
Greg Landrum
e08e0d16d8 first pass, using google style 2015-11-14 14:58:11 +01:00
Riccardo Vianello
78d7f6c1d9 Fix regressions occurring when building with msvc9 2015-10-14 09:43:16 +02:00
Greg Landrum
d3bf352940 add test for #611 2015-09-10 16:01:15 +02:00
Greg Landrum
177e584a11 Fixes #488 2015-04-22 06:33:30 +02:00
Greg Landrum
a66662b2a2 switch back to using the previous stereochemistry code for now 2015-04-10 09:47:17 +02:00
Greg Landrum
6d7b2b0914 merge with master 2015-01-22 06:30:51 -05:00
Brian Kelley
95a92282d1 Dictionary access is saniztized and optimized.
o rdkit gains a RDKit::common_properties namespace that contains common string value properties

 o Dict.h and below gain getPropIfPresent that attempts to retrieve a property and returns
  true/false on success or failure.  This is used to optimize access.

 o rdkit learns how to pass property keys by reference, not value.

A new namespace has been added to RDKit, common_properties
that contains the std::string values for commonly used
properties.  This helps to avoid typos in string values
but also avoids a creation of std::strings from character
values.  All accessors (has/get/clear and getPropIfPresent) now pass
the key by reference.

Additionally, getPropIfPresent removes the double lookup
of hasProp/getProp which can be a significant speedup
in the smiles and smarts parsers (10-20%)
2015-01-15 12:23:29 -05:00
Greg Landrum
0f1ec50767 Fixes #407 2014-12-31 06:28:02 +00:00
Nadine Schneider
53cd0666eb Introduce UpdatePropertyCache to MolWriter 2014-12-19 13:59:56 +01:00
Greg Landrum
114ff2fe8d Fixes #357 2014-10-23 06:04:48 +02:00
Greg Landrum
f94ed4a1f5 get queries from SMARTS into CTABs more reasonably 2014-05-26 09:02:08 +02:00
Greg Landrum
665872cb39 Fixes #268 2014-05-25 06:55:30 +02:00
Greg Landrum
684f451352 Fixes #266 2014-05-22 17:34:06 +02:00
Greg Landrum
601c21f19d Fixes #189 2014-03-13 05:23:56 +01:00
Greg Landrum
75be63fd6b merge with trunk 2014-02-09 05:00:18 +01:00
Greg Landrum
e38e60d283 Fixes #186 2014-01-11 06:01:30 +01:00
Greg Landrum
5dca39e2f7 Fixes #187 2014-01-11 05:38:11 +01:00
Greg Landrum
0ce8f23c6e further R group handling 2014-01-10 04:24:22 +01:00
Greg Landrum
bb59487648 add tests for the kekulize and forceV3000 options 2013-12-30 07:14:16 +01:00
Greg Landrum
ae14fa3bd9 add support for the ZCH and HYD elements in mol files 2013-12-07 17:40:04 +01:00
Greg Landrum
3b0c72c4bf initial pass at ZBO support.
does not yet handle the HYD and ZCH lines
2013-11-30 06:58:03 +01:00
Greg Landrum
e51d2c1020 Fixes #118 2013-10-05 16:19:02 +02:00
Greg Landrum
d80ab78f70 initial pass at this 2013-07-15 17:04:15 +02:00
Greg Landrum
c36547010a Fix #64 2013-07-09 05:40:55 +02:00
Greg Landrum
9ff479838c fix and test issue 264 2012-11-17 06:49:38 +00:00
Greg Landrum
4b40a7d3f4 a bit more robustification around issue 3525000b 2012-05-09 13:41:22 +00:00
Greg Landrum
03ecdbc1cc fix and test issue 3525000 2012-05-09 13:13:46 +00:00
Greg Landrum
5f85129f22 initial support for clang
this is minor build-system variations and some code cleanup
the python wrapper still needs cleanup and 
the sln stuff doesn't work at all under clang due to weirdness with boost::regex
2011-05-25 19:40:31 +00:00
Greg Landrum
f3fbef45c5 update copyright statements 2010-09-26 17:04:37 +00:00
Greg Landrum
0b94555f88 fix (and test) potential crashing bug
with use of close() in SDWriters
2010-08-30 05:00:58 +00:00
Greg Landrum
3f08f58208 add close() method to writers 2010-07-28 04:29:58 +00:00
Greg Landrum
73fccfd26f add a few simple tests for the mol file parity handling 2009-01-21 06:05:13 +00:00
Greg Landrum
3c24365856 allow _Names to be left out of Smiles writer output (sf.net feature request 2039278) 2008-08-12 19:25:38 +00:00
Greg Landrum
96e8412e8d support isomeric smiles from the SmilesWriter 2008-07-17 08:20:27 +00:00
Greg Landrum
28c3224c9b MolFileParser: move the chirality setting inside the sanitization test
FileParsers.vcproj: remove optimization (under vc++) for two files. This is a "fix" for what I believe to be a vc++ compiler bug. See issue 1607290 (http://sourceforge.net/tracker/index.php?func=detail&aid=1607290&group_id=160139&atid=814650)

testMolWriter.cpp: update memory corruption test
2006-12-21 04:45:37 +00:00
Greg Landrum
47a62846e7 test for memory corruption 2006-12-17 15:32:48 +00:00
Greg Landrum
a023b862aa support direct passing of streams 2006-11-19 06:46:58 +00:00
Greg Landrum
5d03333c22 setup svn keywords (should have done this before import... grn) 2006-05-06 22:54:39 +00:00
Greg Landrum
75a79b6327 initial import 2006-05-06 22:20:08 +00:00